Skip to main content

Redis

Redis is an in-memory data store. The Redis provider connects using the Rueidis client and supports single-node and cluster topologies.

Configuration

Environment Variables

CACHE__TYPE=redis
CACHE__REDIS__HOSTS=localhost:6379
CACHE__REDIS__PASSWORD=changeme
CACHE__REDIS__TLS_ENABLED=false
CACHE__REDIS__TLS_SERVER_NAME=

YAML Configuration

cache:
type: redis
redis:
hosts:
- localhost:6379
password: changeme
tls_enabled: false
tls_server_name: ''
VariableDescriptionDefaultRequired
CACHE__TYPECache provider type-
CACHE__REDIS__HOSTSComma-separated list of Redis host:port addresses-
CACHE__REDIS__PASSWORDRedis password-
CACHE__REDIS__TLS_ENABLEDEnable TLS for the Redis connectionfalse
CACHE__REDIS__TLS_SERVER_NAMETLS server name for certificate verification-