Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
degradable
main
Degradable
Memory
Redis
Built with Crystal 1.9.2
2023-10-07 17:00:49 UTC
abstract class
Degradable
Degradable
Reference
Object
Direct Known Subclasses
Degradable::Memory
Degradable::Redis
Defined in:
degradable.cr
Constant Summary
VERSION
=
"0.1.0"
Constructors
.new
(failure_threshold : Float64, minimum : Int32 =
1000
, &failure_handler)
Instance Method Summary
#check
(&)
#checked
: Int
#failed
: Int
Constructor Detail
def self.
new
(failure_threshold : Float64, minimum : Int32 =
1000
, &failure_handler)
#
[
View source
]
Instance Method Detail
def
check
(&)
#
[
View source
]
abstract def
checked
: Int
#
[
View source
]
abstract def
failed
: Int
#
[
View source
]