class Durian::Cache::IPAddress
- Durian::Cache::IPAddress
- Reference
- Object
Defined in:
durian/cache/ip_address.crConstructors
Instance Method Summary
- #[](domain : String)
- #[]=(domain, ip_address : Socket::IPAddress)
- #[]=(domain, ip_address : Array(Socket::IPAddress))
- #[]?(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 : String)
- #full?
- #get(domain : String, port : Int32) : Array(Socket::IPAddress) | Nil
- #get(domain : String) : Array(Socket::IPAddress) | 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, ip_address : Socket::IPAddress)
- #set(domain : String, ip_address : Array(Socket::IPAddress))
- #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)
#