This repository is no longer active, all the sources have been moved to a new monorepo.
The new repository will be become the single GitHub repository for everything related to Gravitee.io API Management.
The minimum requirement is : * Maven3 * Jdk8
For user gravitee snapshot, You need the declare the following repository in you maven settings :
$ git clone https://github.com/gravitee-io/gravitee-repository-redis.git
$ cd gravitee-repository-redis
$ mvn clean package
repository.redis options (standalone) :
| Parameter | default | | ------------------------------------------------ | ---------: | | host | localhost | | port | 6379 | | password | | | timeout | 1000 ms |
repository.redis options (using sentinel) :
| Parameter | default | | ------------------------------------------------ | ---------: | | sentinel.nodes | | | sentinel.password | | | sentinel.master (mandatory when using Sentinel) | | | password | | | timeout | 1000 ms |
Examples :
Standalone redis :
redis:
host: 'redis.mycompany'
port: 6379
password: 'mysecretpassword'
timeout: 2000
Redis replicaset behind Sentinels :
redis:
sentinel:
master: 'mymaster'
nodes:
- host: 'sentinel-1.mycompany'
port: 26379
- host: 'sentinel-2.mycompany'
port: 26379
- host: 'sentinel-3.mycompany'
port: 26379
password: 'sentinel-password'
password: 'redis-password'
timeout: 2000