class MemoryCache(K, V)
- MemoryCache(K, V)
- Reference
- Object
Defined in:
memory_cache.crConstant Summary
-
VERSION =
"0.2"
Constructors
Instance Method Summary
-
#cleanup
cleanup all expired values
- #clear
- #delete(k : K) : V | Nil
- #each(&block : K, V -> )
- #exists?(k : K) : Bool
- #fetch(k : K, expires_in = nil, used_count = nil, &block : -> V) : Tuple(Symbol, V)
- #read(k : K) : V | Nil
- #size
- #update(k : K, &block : V -> V)
- #write(k : K, v : V, expires_in = nil, used_count = nil) : V