class Durian::Cache::Record
- Durian::Cache::Record
- Reference
- Object
Defined in:
durian/cache/record.crConstructors
Instance Method Summary
- #[](domain : String)
- #[]=(domain, value : Entry)
- #[]?(domain : String)
- #capacity : Int32
- #capacity=(capacity : Int32)
- #clean_expired?
- #cleanAt : Time
- #cleanAt=(cleanAt : Time)
- #cleanInterval : Time::Span
- #cleanInterval=(cleanInterval : Time::Span)
- #clear
- #empty? : Bool
- #expired?(domain, flag : RecordFlag)
- #full?
- #get(domain, flag : RecordFlag) : Array(Packet) | Nil
- #inactive_clean
- #maximumCleanup : Int32
- #maximumCleanup=(maximumCleanup : Int32)
- #mutex : Mutex
- #mutex=(mutex : Mutex)
- #recordExpires : Time::Span
- #recordExpires=(recordExpires : Time::Span)
- #refresh_clean_at
- #set(domain : String, packets : Array(Packet), flag : RecordFlag)
- #size
- #storage : Hash(String, Entry)
- #storage=(storage : Hash(String, Entry))
Constructor Detail
def self.new(storage : Hash(String, Entry) = Hash(String, Entry).new, capacity : Int32 = 256, cleanInterval : Time::Span = 3600.seconds, recordExpires : Time::Span = 1800.seconds)
#