This is a CLIENT module that connects to existing Redis servers. If you want the framework to launch and manage an embedded Redis server, use the Memdb module instead.
Setup
application.yml:
Implementation
PHP has two very good libraries that can be used to work with Redis: This module assumes that you have the PhpRedis extension already installed.If you are interested in using Predis, contributions for a PredisTemplate are welcomed.
Autowired Services
This module provides the following services automatically available to you.1. PhpRedisTemplate
UsePhpRedisTemplate when dealing with single Redis node(s).
Configuration for PhpRedisTemplate (redis-config.yml)
PHP Example
2. PhpRedisClusterTemplate
UsePhpRedisClusterTemplate when dealing with Redis Cluster.
If you are interested in using Predis, contributions for a PredisClusterTemplate are welcomed.
Configuration for PhpRedisClusterTemplate (redis-config.yml)
PHP Example
3. PhpRedisArrayTemplate
UsePhpRedisArrayTemplate when dealing with Redis Arrays.
Configuration for PhpRedisArrayTemplate (redis-config.yml)
PHP Example
4. PhpRedisSentinelTemplate
UsePhpRedisSentinelTemplate when dealing with Redis Sentinel.
Configuration for PhpRedisSentinelTemplate (redis-config.yml)
PHP Example
5. PhpRedisTokenTemplate
UsePhpRedisTokenTemplate when dealing with token-based ring topology Redis clusters such as Netflix Dynomite.