Durian::Cache::IPAddress
Inherits Reference / Object
Constructors
new(storage : Hash(String, Entry) = Hash(String, Entry).new, capacity : Int32 = 256, cleanInterval : Time::Span = 3600.seconds, recordExpires : Time::Span = 1800.seconds)
SourceInstance methods
[](domain : String)
Source[]=(domain, ip_address : Socket::IPAddress)
Source[]=(domain, ip_address : Array(Socket::IPAddress))
Source[]?(domain : String)
Sourcecapacity
Sourcecapacity=(capacity : Int32)
Sourceclean_expired?
SourcecleanAt
SourcecleanAt=(cleanAt : Time)
SourcecleanInterval
SourcecleanInterval=(cleanInterval : Time::Span)
Sourceclear
Sourceempty?
Sourceexpired?(domain : String)
Sourcefull?
Sourceget(domain : String, port : Int32) : Array(Socket::IPAddress) | Nil
Sourceget(domain : String) : Array(Socket::IPAddress) | Nil
Sourceinactive_clean
SourcemaximumCleanup
SourcemaximumCleanup=(maximumCleanup : Int32)
Sourcemutex
Sourcemutex=(mutex : Mutex)
SourcerecordExpires
SourcerecordExpires=(recordExpires : Time::Span)
Sourcerefresh_clean_at
Sourceset(domain : String, ip_address : Socket::IPAddress)
Sourceset(domain : String, ip_address : Array(Socket::IPAddress))
Sourcesize
Sourcestorage
Sourcestorage=(storage : Hash(String, Entry))
Source