Lake(T)
Inherits Reference < Object
Constants
DEFAULT_CAPACITY = 24
DEFAULT_TTL = 1.5.seconds
Constructors
new(capacity : Int32 = DEFAULT_CAPACITY, ttl : Time::Span = DEFAULT_TTL, factory : Proc(T) = -> do
T.new
end)
SourceInstance methods
[](index)
Sourceclear
Sourcedip
Sourcedip_sync
Sourcefirst
Sourcelast
Sourceleak
Sourcesize(*args, **options)
Sourcesize(*args, **options, &)
Sourcettl
Sourcettl=(ttl : Time::Span)
Source