class MaxMindDB::Cache(K, V)

Defined in:

maxminddb/cache.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : MaxMindDB::Any) ==

Instance methods inherited from class Object

===(other : MaxMindDB::Any) ===

Constructor Detail

def self.new(capacity : Int32) #

[View source]

Instance Method Detail

def capacity : Int32 #

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

[View source]
def fetch(key : K, & : K -> V) : V #

[View source]
def full? #

[View source]
def mutex : Mutex #

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

[View source]
def storage : Hash(K, V) #

[View source]
def storage=(storage : Hash(K, V)) #

[View source]