FailThrough

play.api.cache.redis.FailThrough
trait FailThrough extends RecoveryPolicy

It fails on failure, i.e., propages the exception to upper layers

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def recoverFrom[T](rerun: => Future[T], default: => Future[T], failure: RedisException): Future[T]

When a failure occurs, this method handles it. It may re-run it, return default value, log it or propagate the exception.

When a failure occurs, this method handles it. It may re-run it, return default value, log it or propagate the exception.

Type parameters

T

expected result type

Value parameters

default

default value neutral to the operation

failure

incident report

rerun

failed request (cache operation)

Attributes

Returns

failure recovery or exception

Definition Classes

Inherited methods

def name: String

name of the policy used for internal purposes

name of the policy used for internal purposes

Attributes

Inherited from:
RecoveryPolicy
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Inherited from:
RecoveryPolicy