class Lake(T)

Defined in:

lake.cr

Constant Summary

DEFAULT_CAPACITY = 24
DEFAULT_TTL = 1.5.seconds

Constructors

Instance Method Summary

Constructor Detail

def self.new(capacity : Int32 = DEFAULT_CAPACITY, ttl : Time::Span = DEFAULT_TTL, factory : Proc(T) = -> do T.new end) #

[View source]

Instance Method Detail

def [](index) #

[View source]
def clear : Array(T) #

[View source]
def dip(&block : T -> ) #

[View source]
def dip_sync(&block : T -> ) #

[View source]
def first #

[View source]
def last #

[View source]
def leak : T #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]
def ttl : Time::Span #

[View source]
def ttl=(ttl : Time::Span) #

[View source]