struct LuckyCache::NullStore
- LuckyCache::NullStore
- LuckyCache::BaseStore
- Struct
- Value
- Object
Defined in:
lucky_cache/stores/null_store.crInstance 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
- #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
  
  
    
      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, 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 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
        #