ChainedCache
org.beangle.cache.chain.ChainedCache
Attributes
- Graph
- Supertypes
Members list
Concise view
Value members
Concrete methods
Remove all mappings from the cache.
Evict specified key
Get Some(T) or None
Put a new Value
Same with put,but return true when absent
return Some(v) when exists old value
return true is (k,oldvalue) exists
Touch the key,restart ttl The default implementation is equivalent to
Touch the key,restart ttl The default implementation is equivalent to
val v = cache.get(k)
if(v.isEmpty) false
else {
cache.remove(k)
cache.put(k,v.get)
true
}
Attributes
- Returns:
false if key not exists
- Definition Classes
Time to idle seconds,-1 is forever