redis

Use a Redis instance as a cache. The expiration can be set to zero or an empty string in order to set no expiration.

# Common config fields, showing default values
redis:
url: tcp://localhost:6379
prefix: ""
expiration: 24h

Fields

url

The URL of the target Redis server.

Type: string
Default: "tcp://localhost:6379"

prefix

An optional string to prefix item keys with in order to prevent collisions with similar services.

Type: string
Default: ""

expiration

An optional period after which cached items will expire.

Type: string
Default: "24h"

retries

The maximum number of retry attempts to make before abandoning a request.

Type: number
Default: 3

retry_period

The duration to wait between retry attempts.

Type: string
Default: "500ms"