InvocationPolicy
play.api.cache.redis.impl.InvocationPolicy
Invocation policy implements whether to wait for the operation result or not. This applies only in the limited number of operations. The best examples are getOrElse
and getOrFuture
. First, both methods invoke get
, then, if missed, compute orElse
clause. Finally, there is the invocation of set
, however, in some scenarios, there is not required to wait for the result of set
operation. The value can be returned earlier. This is the difference between Eager
(not waiting) and Lazy
(waiting) invocation policies.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object EagerInvocation.typeobject LazyInvocation.type
Members list
In this article