Redis
Configuration
version: "3"
kv:
# User defined name of the storage.
redis:
# Required section.
# Should be "redis" for the redis driver.
driver: redis
config:
# Optional section.
# By default, one connection will be specified with the "127.0.0.1:6379" value.
addrs:
- "127.0.0.1:6379"
# Optional section.
# Default: ""
username: ""
# Optional section.
# Default: ""
password: ""
# Optional section.
# Default: 0
db: 0
# Optional section.
# Default: 0 (equivalent to the default value of 5 seconds)
dial_timeout: 0
# Optional section.
# Default: 0 (equivalent to the default value of 3 retries)
max_retries: 0
# Optional section.
# Default: 0 (equivalent to the default value of 8ms)
min_retry_backoff: 0
# Optional section.
# Default: 0 (equivalent to the default value of 512ms)
max_retry_backoff: 0
# Optional section.
# Default: 0 (equivalent to the default value of 10 connections per CPU).
pool_size: 0
# Optional section.
# Default: 0 (do not use idle connections)
min_idle_conns: 0
# Optional section.
# Default: 0 (do not close aged connections)
max_conn_age: 0
# Optional section.
# Default: 0 (equivalent to the default value of 3s)
read_timeout: 0
# Optional section.
# Default: 0 (equivalent to the value specified in the "read_timeout" section)
write_timeout: 0
# Optional section.
# Default: 0 (equivalent to the value specified in the "read_timeout" + 1s)
pool_timeout: 0
# Optional section.
# Default: 0 (equivalent to the default value of 5m)
idle_timeout: 0
# Optional section.
# Default: 0 (equivalent to the default value of 1m)
idle_check_freq: 0
# Optional section.
# Default: false
read_only: false
# Optional section.
tls:
# Optional section.
# Default: ""
cert: ""
# Optional section.
# Default: ""
key: ""
# Optional section.
# Default: ""
root_ca: ""Options
Addresses
Username and Password
DB
Timeouts
Retries
Pool Size
TLS Configuration
Other
Redis Cluster
Redis Sentinel
Last updated