Redis
Redis is an in-memory data store ideal for caching, rate limiting, queues, and other latency-sensitive workloads. Choose this add-on when your components need fast key-value access or pub/sub messaging.
Add to your project
Section titled “Add to your project”Paste this entry into the addons list in diploi.yaml to add Redis to your project.
addons: - name: Redis identifier: redis package: https://github.com/diploi/addon-redis#v7.4-urlRedis reference
Section titled “Redis reference”What Redis defines in a deployment.
Environment variables
Section titled “Environment variables”Redis sets these values in every deployment.
Components can import them with env.include as redis.*.
Defaults marked generated are unique to each deployment.
Parameters are set on the deployment’s Setup tab.
Persistent Storage
Keep a snapshot of the DB on the disk. Optional, off by default.
| Variable | Type | Default | Description |
|---|---|---|---|
REDIS_SAVE_INTERVAL |
integer | 60 |
Save Interval in Seconds |
REDIS_URL |
string | generated |
Readme
Section titled “Readme”Uses the official redis Docker image.