class Durian::Resolver::Cache::IPAddress
- Durian::Resolver::Cache::IPAddress
- Reference
- Object
Defined in:
durian/resolver/cache/ip_address.crConstructors
Instance Method Summary
- #[](name : String)
- #[]=(name, value : Socket::IPAddress)
- #[]=(name, value : Array(Socket::IPAddress))
- #[]?(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, Item)
- #collects=(collects : Immutable::Map(String, Item))
- #empty?
- #expires?(name : String)
- #full?
- #get(name : String, port : Int32) : Array(Socket::IPAddress) | Nil
- #get(name : String) : Array(Socket::IPAddress) | Nil
- #inactive_clean
- #insert(name : String, ip_address : Array(Socket::IPAddress))
- #maximumCleanup : Int32
- #maximumCleanup=(maximumCleanup : Int32)
- #recordExpires : Time::Span
- #recordExpires=(recordExpires : Time::Span)
- #refresh
- #reset
- #set(name : String, ip_address : Socket::IPAddress)
- #set(name : String, ip_address : Array(Socket::IPAddress))
- #size
Constructor Detail
def self.new(collects : Immutable::Map(String, Durian::Resolver::Cache::IPAddress::Item) = Immutable::Map(String, Item).new, capacity : Int32 = 256, cleanInterval : Time::Span = 3600.seconds, recordExpires : Time::Span = 1800.seconds)
#