Skip to main content

Redis environment variables

Reference documentation for Redis-related environment variables.

Redis environment variables available for use with Self-hosted Retool deployments.

Only configure environment variables when needed. You can configure many environment variables from your organization's Settings rather than directly editing your deployment's configuration file.

You must restart your instance after setting any variables for them to take effect.

All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.

REDIS_DB

The database number for read and write operations, between 0 and 15.

Type number
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Examples
0

REDIS_HOST

The hostname of the Redis reader endpoint that connects the Redis instance as a caching layer.

Type string
Format Hostname
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Examples
redis-retool

REDIS_PASSWORD

The password for the Redis instance.

Type string
Format Password
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Examples
password

REDIS_PORT

The port number of the Redis reader endpoint that connects the Redis instance as a caching layer.

Type number
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Examples
6379

REDIS_TLS

Whether to use TLS for the Redis connection.

Type boolean
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Examples
true