class Coffee::Cache
- Coffee::Cache
- Reference
- Object
Defined in:
coffee/cache.crConstructors
Class Method Summary
Instance Method Summary
- #<<(entry : Entry, ip_range : IPAddress)
- #capacity : Int32
- #capacity=(capacity : Int32)
- #clean_expired?
- #cleanAt : Time
- #cleanAt=(cleanAt : Time)
- #cleanInterval : Time::Span
- #cleanInterval=(cleanInterval : Time::Span)
- #empty?
- #expired_clean
- #expired_clean!
- #full?
- #half_full?
- #ip_range_full?(ip_range : IPAddress) : Bool
- #mutex : Mutex
- #mutex=(mutex : Mutex)
- #not_expired?
- #rangeCapacity : Int32
- #rangeCapacity=(rangeCapacity : Int32)
- #refresh
- #reset
- #size
- #storage : Array(Entry)
- #storage=(storage : Array(Entry))
- #to_ip_address(port : Int32) : Array(Socket::IPAddress) | Nil
- #to_ip_address : Array(Socket::IPAddress) | Nil
Constructor Detail
def self.new(storage : Array(Entry) = Array(Entry).new, capacity : Int32 = 5, cleanInterval : Time::Span = 180.seconds, taskCount : Int32 = 0)
#