class

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)
Source

Instance methods

[](domain : String)
Source
[]=(domain, ip_address : Socket::IPAddress)
Source
[]=(domain, ip_address : Array(Socket::IPAddress))
Source
[]?(domain : String)
Source
capacity
Source
capacity=(capacity : Int32)
Source
clean_expired?
Source
cleanAt
Source
cleanAt=(cleanAt : Time)
Source
cleanInterval
Source
cleanInterval=(cleanInterval : Time::Span)
Source
clear
Source
empty?
Source
expired?(domain : String)
Source
full?
Source
get(domain : String, port : Int32) : Array(Socket::IPAddress) | Nil
Source
get(domain : String) : Array(Socket::IPAddress) | Nil
Source
inactive_clean
Source
maximumCleanup
Source
maximumCleanup=(maximumCleanup : Int32)
Source
mutex
Source
mutex=(mutex : Mutex)
Source
recordExpires
Source
recordExpires=(recordExpires : Time::Span)
Source
refresh_clean_at
Source
set(domain : String, ip_address : Socket::IPAddress)
Source
set(domain : String, ip_address : Array(Socket::IPAddress))
Source
size
Source
storage
Source
storage=(storage : Hash(String, Entry))
Source

Nested types