class Lake(T)
- Lake(T)
- Reference
- Object
Defined in:
lake.crConstant Summary
-
DEFAULT_CAPACITY =
24
-
DEFAULT_TTL =
1.5.seconds
Constructors
Instance Method Summary
- #[](index)
- #clear : Array(T)
- #dip(&block : T -> )
- #dip_sync(&block : T -> )
- #first
- #last
- #leak : T
- #size(*args, **options)
- #size(*args, **options, &)
- #ttl : Time::Span
- #ttl=(ttl : Time::Span)
Constructor Detail
def self.new(capacity : Int32 = DEFAULT_CAPACITY, ttl : Time::Span = DEFAULT_TTL, factory : Proc(T) = -> do
T.new
end)
#