Skip to content
This repository was archived by the owner on Feb 25, 2019. It is now read-only.

Latest commit

 

History

History
35 lines (29 loc) · 850 Bytes

redis.md

File metadata and controls

35 lines (29 loc) · 850 Bytes

Redis

Anvil Connect requires access to a Redis database and uses the default host and port for a local instance. To use a remote Redis server, provide host, port, and password parameters under the "redis" object in your config.

{
  // ...
  "redis": {
    "host": "HOST",
    "port": "PORT",
    "password": "PASSWORD"
  }
}

Configuration options for Redis are identical to that of the supported options for ioredis.

You can also provide a db setting (integer) if you want to use a different Redis database. By default, Redis is configured to support 16 databases (0 - 15). This can be configured in the redis.conf file for your Redis installation.

{
  // ...
  "redis": {
    "db": 3
  }
}