Provides a encode and decode methods to serialize objects into strings.
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
Redis cache configuration providing settings of the cache instance to be used
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.
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.
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.
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.
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