struct LuckyCache::NullStore

Defined in:

lucky_cache/stores/null_store.cr

Instance Method Summary

Instance methods inherited from struct LuckyCache::BaseStore

delete(key : CacheKey) delete, fetch(key : CacheKey, *, as : Array(T).class, expires_in : Time::Span = LuckyCache.settings.default_duration, &) forall T
fetch(key : CacheKey, *, as : T.class, expires_in : Time::Span = LuckyCache.settings.default_duration, &) forall T
fetch
, flush : Nil flush, initialize initialize, read(key : CacheKey) : CacheItem | Nil read, size : Int32 size, write(key : CacheKey, *, expires_in : Time::Span = LuckyCache.settings.default_duration, &) write

Constructor methods inherited from struct LuckyCache::BaseStore

new new

Instance Method Detail

def delete(key : CacheKey) #

[View source]
def fetch(key : CacheKey, *, as : Array(T).class, expires_in : Time::Span = LuckyCache.settings.default_duration, &) forall T #

[View source]
def fetch(key : CacheKey, *, as : T.class, expires_in : Time::Span = LuckyCache.settings.default_duration, &) forall T #

[View source]
def flush : Nil #

[View source]
def read(key : CacheKey) : CacheItem | Nil #

[View source]
def size : Int32 #

[View source]
def write(key : CacheKey, *, expires_in : Time::Span = LuckyCache.settings.default_duration, &) #

[View source]