Package

play.api.cache

redis

Permalink

package redis

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

Type Members

  1. trait AkkaSerializer extends AnyRef

    Permalink

    Provides a encode and decode methods to serialize objects into strings and vise versa.

  2. class AsExpiration extends AnyRef

    Permalink

    converts given timestamp indication expiration date into duration from now

    converts given timestamp indication expiration date into duration from now

    Definition Classes
    Expiration
  3. class AsyncRedis extends RedisCache[Future] with CacheAsyncApi

    Permalink
    Annotations
    @Singleton()
  4. trait CacheApi extends InternalCacheApi[Identity]

    Permalink

    Synchronous and blocking implementation of the connection to the redis database

  5. trait CacheAsyncApi extends InternalCacheApi[Future]

    Permalink

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

  6. trait Configuration extends AnyRef

    Permalink

    Configuration provider returns a connection settings to Redis server.

    Configuration provider returns a connection settings to Redis server. The application can run in various different environments and in many of them there might be very different connection settings. For example, for running the application on localhost is sufficient to set up configuration into the configuration file. Although for deploying the application into some PaaS it might be injected directly by the platform itself, e.g., via environment variable. This trait abstracts the configuration and allows its multiple implementations for every required environment.

  7. case class ConnectionSettings(host: String, port: Int, database: Int, password: Option[String])(implicit invocationContext: ExecutionContext, timeout: Timeout) extends Product with Serializable

    Permalink

    Connection settings encapsulates host, port, and other settings considered by RedisConnectorImpl.

  8. class ConnectionSettingsProvider extends Provider[ConnectionSettings]

    Permalink

    Converts Configuration instance into simple immutable ConnectionSettings

    Converts Configuration instance into simple immutable ConnectionSettings

    Annotations
    @Singleton()
  9. class EnvironmentConfiguration extends StaticConfiguration

    Permalink

    Environment configuration expects the configuration to be injected through environment variable containing the connection string.

    Environment configuration expects the configuration to be injected through environment variable containing the connection string. This configuration is often used by PaaS environments.

    Annotations
    @Singleton()
  10. class EnvironmentConfigurationProvider extends Provider[EnvironmentConfiguration]

    Permalink

    Reads environment variables for the connection string and returns EnvironmentConfiguration instance.

    Reads environment variables for the connection string and returns EnvironmentConfiguration instance. This configuration instance is designed to work in PaaS environments such as Heroku.

  11. trait Exceptions extends AnyRef

    Permalink

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

  12. trait Expiration extends AnyRef

    Permalink

    Provides implicit converters to convert expiration date into duration, which is accepted by CacheApi.

    Provides implicit converters to convert expiration date into duration, which is accepted by CacheApi. The conversion is performed from now, i.e., the formula is:

    expireAt in seconds - now in seconds = duration in seconds
  13. trait Implicits extends AnyRef

    Permalink

    Implicit helpers used within the redis cache implementation.

    Implicit helpers used within the redis cache implementation. These handful tools simplifies code readability but has no major function.

  14. trait InternalCacheApi[Result[_]] extends AnyRef

    Permalink

    Cache API inspired by basic Play play.api.cache.CacheApi.

    Cache API inspired by basic Play play.api.cache.CacheApi. It implements all its operations and in addition it declares couple more useful operations handful with cache storage. Furthermore, due to its parametrization it allows to decide whether it produces blocking results or non-blocking promises.

  15. trait JavaCacheApi extends cache.CacheApi

    Permalink

    Java version of play.api.CacheApi

  16. class JavaRedis extends JavaCacheApi

    Permalink
    Annotations
    @Singleton()
  17. class RedisActorProvider extends Provider[RedisActor]

    Permalink

    Constructs an actor directly communicating with the redis server.

    Constructs an actor directly communicating with the redis server. Internally, it uses connection settings and Brando connector but encapsulates it with additional logic.

    Annotations
    @Singleton()
  18. class RedisCache[Result[_]] extends InternalCacheApi[Result] with Implicits

    Permalink

    Implementation of plain API using redis-server cache and Brando connector implementation.

  19. class RedisCacheModule extends Module with CoreBinding with DefaultBinding with SyncOrAsync with ConfigurationProvider

    Permalink

    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()
  20. trait RedisConnector extends AnyRef

    Permalink

    Internal non-blocking Redis API implementing REDIS protocol

    Internal non-blocking Redis API implementing REDIS protocol

    See also

    http://redis.io/commands

  21. class RedisConnectorImpl extends RedisConnector

    Permalink

    The connector directly connects with the REDIS instance, implements protocol commands and is supposed to by used internally by another wrappers.

    The connector directly connects with the REDIS instance, implements protocol commands and is supposed to by used internally by another wrappers. The connector does not directly implement CacheApi but provides fundamental functionality.

    Annotations
    @Singleton()
  22. class StaticConfiguration extends Configuration

    Permalink

    This configuration source reads the static configuration in the application.conf file and provides settings located in there.

    This configuration source reads the static configuration in the application.conf file and provides settings located in there. This is default configuration provider. It expects all settings under the 'play.cache.redis' node.

    Annotations
    @Singleton()
  23. class SyncRedis extends RedisCache[Identity] with CacheApi with cache.CacheApi

    Permalink
    Annotations
    @Singleton()

Value Members

  1. object Builders

    Permalink

    Transforms future result produced by redis implementation to the result of the desired type

  2. object ModuleConfiguration

    Permalink

    Provides optional configurations of the redis module

  3. implicit def javaDate2AsExpiration(expireAt: Date): AsExpiration

    Permalink
    Definition Classes
    Expiration
  4. implicit def jodaDate2AsExpiration(expireAt: DateTime): AsExpiration

    Permalink
    Definition Classes
    Expiration
  5. def unsupported(message: String): Nothing

    Permalink

    helper throwing UnsupportedOperationException

    helper throwing UnsupportedOperationException

    Definition Classes
    Exceptions
    Annotations
    @throws( ... )

Inherited from Exceptions

Inherited from Expiration

Inherited from AnyRef

Inherited from Any

Ungrouped