class Durian::Cache
- Durian::Cache
- Reference
- Object
Defined in:
durian/cache.crConstructors
Instance Method Summary
- #[](name : String)
- #[]=(name, value : RecordKind)
- #[]?(name : String)
- #capacity : Int32
- #capacity=(capacity : Int32)
- #clean_expires?
- #cleanAt : Time
- #cleanAt=(cleanAt : Time)
- #cleanInterval : Time::Span
- #cleanInterval=(cleanInterval : Time::Span)
- #collects : Immutable::Map(String, RecordKind)
- #collects=(collects : Immutable::Map(String, RecordKind))
- #empty?
- #expires?(name, flag : Durian::RecordFlag)
- #full?
- #get(name, flag : Durian::RecordFlag)
- #inactive_clean
- #insert(name : String)
- #maximumCleanup : Int32
- #maximumCleanup=(maximumCleanup : Int32)
- #recordExpires : Time::Span
- #recordExpires=(recordExpires : Time::Span)
- #refresh
- #reset
- #set(name : String, packet : Durian::Packet::Response, flag : Durian::RecordFlag)
- #size
Constructor Detail
def self.new(collects : Immutable::Map(String, Durian::Cache::RecordKind) = Immutable::Map(String, RecordKind).new, capacity : Int32 = 256, cleanInterval : Time::Span = 3600.seconds, recordExpires : Time::Span = 1800.seconds)
#