abstract struct LuckyCache::BaseStore

Direct Known Subclasses

Defined in:

lucky_cache/stores/base_store.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

abstract def delete(key : CacheKey) #

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

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

[View source]
abstract def flush : Nil #

[View source]
def initialize #

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

[View source]
abstract def size : Int32 #

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

[View source]