class Coffee::Cache
- Coffee::Cache
- Reference
- Object
Defined in:
coffee/cache.crConstructors
Class Method Summary
Instance Method Summary
- #<<(entry : Entry, ip_range : IPAddress)
- #cache_hash
- #clean_expired?
- #cleanAt : Time
- #cleanAt=(cleanAt : Time)
- #clear
- #empty? : Bool
- #expired_clean
- #expired_clean!
- #full?
- #half_full?
- #high_priority_full?
- #ip_range_full?(ip_range : IPAddress) : Bool
- #mutex : Mutex
- #mutex=(mutex : Mutex)
- #not_expired?
- #option : Option::Cache
- #option=(option : Option::Cache)
- #rangeCapacity : Int32
- #rangeCapacity=(rangeCapacity : Int32)
- #refresh_clean_at
- #size
- #storage : Array(Entry)
- #storage=(storage : Array(Entry))
- #to_ip_address(port : Int32) : Array(Socket::IPAddress) | Nil
- #to_ip_address : Array(Socket::IPAddress) | Nil
- #try_write_high_priority_entry(entry : Entry, ip_range : IPAddress)
Constructor Detail
def self.new(storage : Array(Entry) = Array(Entry).new, taskCount : Int32 = 0, option : Option::Cache = Option::Cache.new)
#