Provides a encode and decode methods to serialize objects into strings and vise versa.
converts given timestamp indication expiration date into duration from now
converts given timestamp indication expiration date into duration from now
Synchronous and blocking implementation of the connection to the redis database
Asynchronous non-blocking implementation of the connection to the redis database
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.
Connection settings encapsulates host, port, and other settings considered by RedisConnectorImpl.
Converts Configuration instance into simple immutable ConnectionSettings
Converts Configuration instance into simple immutable ConnectionSettings
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.
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.
Helper trait providing simplified and unified API to exception handling in play-redis
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
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.
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.
Java version of play.api.CacheApi
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.
Implementation of plain API using redis-server cache and Brando connector implementation.
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.
Internal non-blocking Redis API implementing REDIS protocol
Internal non-blocking Redis API implementing REDIS protocol
http://redis.io/commands
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.
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.
Transforms future result produced by redis implementation to the result of the desired type
Provides optional configurations of the redis module
helper throwing UnsupportedOperationException
helper throwing UnsupportedOperationException