class Tmdb::FileCache

Defined in:

cache/file_cache.cr

Constructors

Instance Method Summary

Instance methods inherited from class Tmdb::Cache(String)

evict(key : String) : Nil evict, get(key : String) : T get, info(key : String) : Info info, put(key : String, object : T) : Nil put

Constructor Detail

def self.new(store_dir : String, max_items : Int64 = 1000.to_i64) #

[View source]
def self.new(store_dir : String, max_items : Int32) #

[View source]

Instance Method Detail

def clear : Nil #

[View source]
def evict(key : String) : Nil #

[View source]
def get(key : String) : String #

[View source]
def hits : UInt64 #

[View source]
def info(key : String) : Info #

[View source]
def max_items : Int64 #

[View source]
def misses : UInt64 #

[View source]
def put(key : String, object : String) : Nil #

[View source]
def ratio : Float64 #

[View source]
def store_dir : String #

[View source]