Evicts the contents of a key
if the old value is value
.
Evicts the contents of a key
if the old value is value
.
Since com.twitter.util.Future uses reference equality, you must use the same object reference to evict a value.
true if the key was evicted false if the key was not evicted
Gets the cached Future.
Gets the cached Future.
None if a value hasn't been specified for that key yet Some(ksync computation) if the value has been specified. Just because this returns Some(..) doesn't mean that it has been satisfied, but if it hasn't been satisfied, it's probably in-flight.
Gets the cached Future, or if it hasn't been returned yet, computes it and returns that value.
Gets the cached Future, or if it hasn't been returned yet, computes it and returns that value.
Unconditionally sets a value for a given key
Unconditionally sets a value for a given key
the number of results that have been computed successfully or are in flight.
A proxy for FutureCaches, useful for wrap-but-modify.