struct

LuckyCache::BaseStore

Inherits Struct < Value < Object

Constructors

Instance methods

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

Nested types