ConcurrentMapCache
Cache based Concurrent Map.
- Since:
3.2.0
Value members
Concrete methods
Same with put,but return true when absent
Same with put,but return true when absent
- Definition Classes
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
}
- Returns:
false if key not exists