class MemoryCache(K, V)
- MemoryCache(K, V)
- Reference
- Object
Defined in:
memory_cache.crConstant Summary
-
VERSION =
"0.4.1"
Constructors
Instance Method Summary
-
#cleanup : Int32
Cleanups all expired values, and returns the cleaned count.
- #clear
- #delete(k : K) : V | Nil
- #each(& : K, V -> )
- #exists?(k : K) : Bool
- #fetch(k : K, expires_in = nil, & : -> V) : V
- #read(k : K) : V | Nil
- #size
- #update(k : K, & : V -> V)
- #write(k : K, v : V, expires_in = nil) : V