struct
LuckyCache::NullStore
- LuckyCache::NullStore
- LuckyCache::BaseStore
- Struct
- Value
- Object
Defined in:
lucky_cache/stores/null_store.crInstance Method Summary
- #decrement(key : CacheKey, by : Int = 1, *, expires_in : Time::Span = LuckyCache.settings.default_duration) : Int64
- #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
- #increment(key : CacheKey, by : Int = 1, *, expires_in : Time::Span = LuckyCache.settings.default_duration) : Int64
- #read(key : CacheKey) : CacheItem | Nil
- #size : Int32
- #write(key : CacheKey, *, expires_in : Time::Span = LuckyCache.settings.default_duration, &)
Instance methods inherited from struct LuckyCache::BaseStore
decrement(key : CacheKey, by : Int = 1, *, expires_in : Time::Span = LuckyCache.settings.default_duration) : Int64
decrement,
delete(key : CacheKey)
delete,
fetch(key : CacheKey, *, as : Array(T).class, expires_in : Time::Span = LuckyCache.settings.default_duration, &) forall Tfetch(key : CacheKey, *, as : T.class, expires_in : Time::Span = LuckyCache.settings.default_duration, &) forall T fetch, flush : Nil flush, increment(key : CacheKey, by : Int = 1, *, expires_in : Time::Span = LuckyCache.settings.default_duration) : Int64 increment, 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 decrement(key : CacheKey, by : Int = 1, *, expires_in : Time::Span = LuckyCache.settings.default_duration) : Int64
#
def fetch(key : CacheKey, *, as : Array(T).class, expires_in : Time::Span = LuckyCache.settings.default_duration, &) forall T
#
def fetch(key : CacheKey, *, as : T.class, expires_in : Time::Span = LuckyCache.settings.default_duration, &) forall T
#
def increment(key : CacheKey, by : Int = 1, *, expires_in : Time::Span = LuckyCache.settings.default_duration) : Int64
#