com.phasmidsoftware.lascala.cache.Fulfilling
Trait to define the behavior of a (self)-fulfilling cache.
Created by scalaprof on 7/7/16.
Type parameters
- K
-
they key type
- V
-
the value type
Attributes
- Graph
-
- Supertypes
-
class Object
trait Matchable
class Any
- Known subtypes
-
Members list
Evaluate key k as an M[V]
Evaluate key k as an M[V]
Value parameters
- k
-
the key to be evaluated
Attributes
- Returns
-
a V wrapped in an M
Fulfill the key k as an M[V]
Fulfill the key k as an M[V]
Value parameters
- k
-
the key to be evaluated
Attributes
- Returns
-
a V wrapped in an M
method to take action whenever a key value is actually fulfilled.
method to take action whenever a key value is actually fulfilled.
Value parameters
- k
-
the key of the element which has been fulfilled
- v
-
the value of the element which has been fulfilled
Attributes
Non-blocking call to get the value v from the cache.
Non-blocking call to get the value v from the cache.
Value parameters
- k
-
the key of the element which we wish to get
Attributes
- Returns
-
the value wrapped as a T