class Durian::Cache::IPAddress

Defined in:

durian/cache/ip_address.cr

Constructors

Instance Method Summary

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

[View source]

Instance Method Detail

def [](domain : String) #

[View source]
def []=(domain, ip_address : Socket::IPAddress) #

[View source]
def []=(domain, ip_address : Array(Socket::IPAddress)) #

[View source]
def []?(domain : String) #

[View source]
def capacity : Int32 #

[View source]
def capacity=(capacity : Int32) #

[View source]
def clean_expired? #

[View source]
def cleanAt : Time #

[View source]
def cleanAt=(cleanAt : Time) #

[View source]
def cleanInterval : Time::Span #

[View source]
def cleanInterval=(cleanInterval : Time::Span) #

[View source]
def clear #

[View source]
def empty? : Bool #

[View source]
def expired?(domain : String) #

[View source]
def full? #

[View source]
def get(domain : String, port : Int32) : Array(Socket::IPAddress) | Nil #

[View source]
def get(domain : String) : Array(Socket::IPAddress) | Nil #

[View source]
def inactive_clean #

[View source]
def maximumCleanup : Int32 #

[View source]
def maximumCleanup=(maximumCleanup : Int32) #

[View source]
def mutex : Mutex #

[View source]
def mutex=(mutex : Mutex) #

[View source]
def recordExpires : Time::Span #

[View source]
def recordExpires=(recordExpires : Time::Span) #

[View source]
def refresh_clean_at #

[View source]
def set(domain : String, ip_address : Socket::IPAddress) #

[View source]
def set(domain : String, ip_address : Array(Socket::IPAddress)) #

[View source]
def size #

[View source]
def storage : Hash(String, Entry) #

[View source]
def storage=(storage : Hash(String, Entry)) #

[View source]