Skip to content
This repository has been archived by the owner on Jul 29, 2021. It is now read-only.

gravitee-io/gravitee-repository-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ DEPRECATED

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.

Gravitee Redis Repository

Overview

Redis repository based on Redis implementation

Requirement

The minimum requirement is : * Maven3 * Jdk8

For user gravitee snapshot, You need the declare the following repository in you maven settings :

Building

$ git clone https://github.com/gravitee-io/gravitee-repository-redis.git
$ cd gravitee-repository-redis
$ mvn clean package

Installing

Unzip the gravitee-repository-redis-3.1.0-SNAPSHOT.zip in the gravitee home directory.

Configuration

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