package redis

Linear Supertypes
ExceptionImplicits, ExpirationImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. redis
  2. ExceptionImplicits
  3. ExpirationImplicits
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Package Members

  1. package configuration
  2. package connector
  3. package impl

Type Members

  1. type AsynchronousResult[A] = Future[A]
  2. trait CacheApi extends AbstractCacheApi[SynchronousResult]

    Synchronous and blocking implementation of the connection to the redis database

  3. trait CacheAsyncApi extends AbstractCacheApi[AsynchronousResult]

    Asynchronous non-blocking implementation of the connection to the redis database

  4. final class CacheName extends AnyVal
  5. trait CondensedReports extends Reports

    Condensed reports policy produces logs without causes, i.e., logs are shorter but less informative.

  6. trait DetailedReports extends Reports

    Detailed reports policy produces logs with failure causes

  7. type Done = akka.Done
    Annotations
    @inline()
  8. trait ExceptionImplicits extends AnyRef

    Helper trait providing simplified and unified API to exception handling in play-redis

  9. case class ExecutionFailedException(key: Option[String], command: String, statement: String, cause: Throwable) extends RedisException with Product with Serializable

    Command execution failed with exception

  10. final class Expiration extends AnyVal

    computes cache duration from the given expiration date time.

  11. trait FailThrough extends RecoveryPolicy

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

  12. trait GuiceProviderImplicits extends ProviderImplicits
  13. class GuiceRedisCacheProvider extends Provider[RedisCaches] with GuiceProviderImplicits
  14. class GuiceRedisInstanceResolver extends redis.configuration.RedisInstanceResolver with GuiceProviderImplicits
    Annotations
    @Singleton()
  15. class NamedCacheInstanceProvider[T] extends Provider[T] with GuiceProviderImplicits
  16. trait ProviderImplicits extends AnyRef
  17. trait RecoverWithDefault extends RecoveryPolicy

    Recovers with a default value instead of failing through

  18. trait RecoveryPolicy extends AnyRef

    Recovery policy triggers when a request fails.

    Recovery policy triggers when a request fails. Based on the implementation, it may try it again, recover with a default value or just simply log the failure. Either way, it is up to user to define what to do on failure.

    Since

    1.3.0

  19. trait RecoveryPolicyResolver extends AnyRef

    This resolver represents an abstraction over translation of the policy name into the instance.

    This resolver represents an abstraction over translation of the policy name into the instance. It has two subclasses, one for guice and the other for compile-time injection.

  20. class RecoveryPolicyResolverGuice extends RecoveryPolicyResolver

    resolves a policies with guice enabled

  21. class RecoveryPolicyResolverImpl extends RecoveryPolicyResolver
  22. trait RedisCacheComponents extends AnyRef

    Components for compile-time dependency injection.

    Components for compile-time dependency injection. It binds components from configuration package

  23. class RedisCacheModule extends Module

    Play framework module implementing play.api.cache.CacheApi for redis-server key/value storage.

    Play framework module implementing play.api.cache.CacheApi for redis-server key/value storage. For more details see README.

    Annotations
    @Singleton()
  24. type RedisCaches = redis.impl.RedisCaches
  25. type RedisConnector = redis.connector.RedisConnector
  26. sealed abstract class RedisException extends RuntimeException

    Generic exception produced by the library indicating internal failure

  27. type RedisInstanceResolver = redis.configuration.RedisInstanceResolver
  28. trait RedisList[Elem, Result[_]] extends RedisCollection[List[Elem], Result]

    Redis Lists are simply lists of strings, sorted by insertion order.

    Redis Lists are simply lists of strings, sorted by insertion order. It is possible to add elements to a Redis List pushing new elements on the head (on the left) or on the tail (on the right) of the list.

    Elem

    Data type of the inserted element

  29. trait RedisMap[Elem, Result[_]] extends RedisCollection[Map[String, Elem], Result]

    Redis Hashes are simply hash maps with strings as keys.

    Redis Hashes are simply hash maps with strings as keys. It is possible to add elements to a Redis Hashes by adding new elements into the collection.

    This simplified wrapper implements only unordered Maps.

    Elem

    Data type of the inserted element

  30. trait RedisSet[Elem, Result[_]] extends RedisCollection[Set[Elem], Result]

    Redis Sets are simply unsorted sets of objects.

    Redis Sets are simply unsorted sets of objects. It is possible to add elements to a Redis Set by adding new elements into the collection.

    This simplified wrapper implements only unordered Sets.

    Elem

    Data type of the inserted element

  31. trait Reports extends RecoveryPolicy

    Abstract recovery policy provides a general helpers for failure reporting.

    Abstract recovery policy provides a general helpers for failure reporting. These might be usable when implementing own recovery policy.

  32. case class SerializationException(key: String, message: String, cause: Throwable) extends RedisException with Product with Serializable

    Value serialization or deserialization failed.

  33. type SynchronousResult[A] = A
  34. case class TimeoutException(cause: Throwable) extends RedisException with Product with Serializable

    Request timeouts

  35. case class UnexpectedResponseException(key: Option[String], command: String) extends RedisException with Product with Serializable

    Request succeeded but returned unexpected value

Value Members

  1. def failed(key: Option[String], command: String, statement: String, cause: Throwable): Nothing

    helper indicating command execution failed with exception

    helper indicating command execution failed with exception

    Definition Classes
    ExceptionImplicits
    Annotations
    @throws(scala.this.throws.<init>$default$1[play.api.cache.redis.ExecutionFailedException])
  2. def invalidConfiguration(message: String): Nothing

    helper indicating invalid configuration

    helper indicating invalid configuration

    Definition Classes
    ExceptionImplicits
    Annotations
    @throws(scala.this.throws.<init>$default$1[IllegalStateException])
  3. implicit def java8Date2AsExpiration(expireAt: LocalDateTime): Expiration
    Definition Classes
    ExpirationImplicits
  4. implicit def javaDate2AsExpiration(expireAt: Date): Expiration
    Definition Classes
    ExpirationImplicits
  5. def serializationFailed(key: String, message: String, cause: Throwable): Nothing

    helper indicating serialization failure, it throws an exception

    helper indicating serialization failure, it throws an exception

    Definition Classes
    ExceptionImplicits
    Annotations
    @throws(scala.this.throws.<init>$default$1[play.api.cache.redis.SerializationException])
  6. def timedOut(cause: Throwable): Nothing

    helper indicating command execution timed out

    helper indicating command execution timed out

    Definition Classes
    ExceptionImplicits
    Annotations
    @throws(scala.this.throws.<init>$default$1[play.api.cache.redis.TimeoutException])
  7. def unexpected(key: Option[String], command: String): Nothing

    helper indicating the command execution returned unexpected exception

    helper indicating the command execution returned unexpected exception

    Definition Classes
    ExceptionImplicits
    Annotations
    @throws(scala.this.throws.<init>$default$1[play.api.cache.redis.UnexpectedResponseException])
  8. def unsupported(message: String): Nothing

    helper throwing UnsupportedOperationException

    helper throwing UnsupportedOperationException

    Definition Classes
    ExceptionImplicits
    Annotations
    @throws(scala.this.throws.<init>$default$1[UnsupportedOperationException])
  9. object CacheName
  10. object GuiceProvider extends ProviderImplicits
  11. object RecoveryPolicyResolver

Inherited from ExceptionImplicits

Inherited from ExpirationImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped