redis Store
redis Store
Defines a store backed by Redis.
The redis store connects to a Redis instance and can be used to persist session state, rate-limit counters, or other key-value data shared across Zilla instances. TLS connections are supported via the vault option.
stores:
my_redis_store:
type: redis
options:
url: rediss://redis.example.com:6380
vault:
my_vault:
keys:
- client
trust:
- ca
default-ttl: PT10SConfiguration (* required)
options*
object
The redis specific options.
options:
url: rediss://redis.example.com:6380
vault:
my_vault:
keys:
- client
trust:
- ca
default-ttl: PT10Soptions.url*
string
Redis connection URL, e.g. redis://localhost:6379 or rediss://redis.example.com:6380 for TLS.
options:
url: redis://localhost:6379options.vault
objectas map of namedobjectproperties
Named vault references used to configure TLS for the Redis connection. Each key is a vault name; the value specifies which keys and trust stores to use.
options:
vault:
my_vault:
keys:
- client
trust:
- cavault.keys
arrayofstring
List of key aliases from the referenced vault to use for TLS client authentication.
vault.trust
arrayofstring
List of certificate aliases from the referenced vault to use when verifying the Redis server certificate.
vault.trustcacerts
boolean
When true, the JVM CA certificates are trusted in addition to any explicitly listed trust certificates. Defaults to false.
options.default-ttl
string| Pattern:^PT(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?$
Default time-to-live for entries written to the store, specified as an ISO 8601 duration (e.g. PT10S for 10 seconds, PT1M30S for 90 seconds).
options:
default-ttl: PT10S
