- Databases
- Redis
Redis
Lade officially supports deploying Redis databases.
Supported Versions
The following Redis versions are supported and receive security updates:
- 7.4
- 7.2
- 6.2
Provisioning Redis
A Redis addon can be provisioned with the CLI:
$ lade addons create redis --name mydb
You will be prompted to select an available plan, region, and version.
Attaching to Your App
Your Redis addon can be attached to your app with the CLI:
$ lade addons attach mydb --app myapp
When your addon is attached, the CACHE_URL
and REDIS_URL
environment variables will be added to your app.
You can confirm these environment variables were added to your app with the lade env list
command.
Accessing Your Database
To access your database remotely, you will need to enable public access on your addon. You can view settings with the lade addons show
command. The addon URI will follow the format:
redis://:<password>@<host>:<port>
You can access your remote database with the redis-cli
command:
$ redis-cli -a <password> -h <host> -p <port>
host:port>