class

Coffee::Cache

Inherits Reference < Object

Constructors

new(storage : Array(Entry) = Array(Entry).new, taskCount : Int32 = 0, option : Option::Cache = Option::Cache.new)
Source

Class methods

maximum_range_capacity(capacity : Int32, task_count : Int32)
Source

Instance methods

<<(entry : Entry, ip_range : IPAddress)
Source
cache_hash
Source
clean_expired?
Source
cleanAt
Source
cleanAt=(cleanAt : Time)
Source
clear
Source
empty?
Source
expired_clean
Source
expired_clean!
Source
full?
Source
half_full?
Source
high_priority_full?
Source
ip_range_full?(ip_range : IPAddress) : Bool
Source
mutex
Source
mutex=(mutex : Mutex)
Source
not_expired?
Source
option
Source
option=(option : Option::Cache)
Source
rangeCapacity
Source
rangeCapacity=(rangeCapacity : Int32)
Source
refresh_clean_at
Source
size
Source
storage
Source
storage=(storage : Array(Entry))
Source
to_ip_address(port : Int32) : Array(Socket::IPAddress) | Nil
Source
to_ip_address
Source
try_write_high_priority_entry(entry : Entry, ip_range : IPAddress)
Source