abstract struct LuckyCache::BaseStore
- LuckyCache::BaseStore
- Struct
- Value
- Object
Direct Known Subclasses
Defined in:
lucky_cache/stores/base_store.crConstructors
Instance Method Summary
- #delete(key : CacheKey)
- #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
- #flush : Nil
- #initialize
- #read(key : CacheKey) : CacheItem | Nil
- #size : Int32
- #write(key : CacheKey, *, expires_in : Time::Span = LuckyCache.settings.default_duration, &)
Constructor Detail
Instance Method Detail
abstract
def fetch(key : CacheKey, *, as : Array(T).class, expires_in : Time::Span = LuckyCache.settings.default_duration, &) forall T
#
abstract
def fetch(key : CacheKey, *, as : T.class, expires_in : Time::Span = LuckyCache.settings.default_duration, &) forall T
#