Redis
Redis is an in-memory scratchpad next to MySQL — not a second place to store customers. Veldriq 1.0.0 does not require it. Most buyers should leave it alone and go live on the database drivers.
It is not Docker. It is not included in backend/docker-compose.yml (that file is MySQL + phpMyAdmin only). Horizon is not required. Turning Redis on does not replace cron or queue:work.
When to stay on database
Section titled “When to stay on database”Stay there for V1 go-live. The production template comments Redis out on purpose:
SESSION_DRIVER=databaseCACHE_STORE=databaseQUEUE_CONNECTION=database
Those values are enough for a correct V1 install, including Field PWA and PDF generation (with a worker).
.env.production.example comments REDIS_CLIENT, REDIS_HOST, REDIS_PASSWORD, and REDIS_PORT. The local .env.example lists Redis values for developers; do not copy them onto the internet without a real server and a password.
How to enable
Section titled “How to enable”Only after Redis is installed and you can reach it from the same machine that runs PHP.
| Pattern | Typical host | How you connect |
|---|---|---|
| TCP Redis | VPS you control | REDIS_HOST is an IP or hostname (often 127.0.0.1), REDIS_PORT usually 6379 |
| Unix socket Redis | Sometimes on shared hosting | REDIS_HOST is the socket path the provider gives you, and REDIS_PORT=0 |
- Install and secure Redis. Bind TCP Redis to localhost unless you know how to firewall it. Do not publish port 6379 on the public internet.
- Uncomment connection settings in
.env. The PHPredisextension must be installed if you choosephpredis. - Point only the stores you intend (
CACHE_STORE=redisand/orQUEUE_CONNECTION=redisand/orSESSION_DRIVER=redis). You can move cache first and leave the queue ondatabase. - From
backend/:php artisan config:clearthenphp artisan config:cache. If a queue worker is already running, alsophp artisan queue:restart.
TCP example (placeholders only):
REDIS_CLIENT=phpredisREDIS_HOST=127.0.0.1REDIS_PASSWORD=<password if required>REDIS_PORT=6379REDIS_DB=0REDIS_CACHE_DB=1Unix socket: REDIS_PORT=0 and REDIS_HOST = the path your host documents. Wrong socket paths (author laptop paths) will fail.
If it fails
Section titled “If it fails”See Troubleshooting Redis. If Redis vanishes, cache can be rebuilt, but a Redis-backed queue can lose in-flight jobs. Redis does not replace backups.