In-memory cache. Valkey is the fork most stacks now take; this is here for what expects Redis by name. The two speak the same protocol, so an application written against one runs unchanged on the other. A stack runs one cache — Redis, Valkey or Memcached — so naming a different one replaces it.
Your application finds it at REDIS_HOST, port 6379 (REDIS_PORT). Both are
in its environment, and REDIS_HOST is the name the Drupal
redis module reads.
How much memory it holds is sized from your machine: most of a cache machine
when it has one to itself, a share of your plan when it sits beside your site.
When it is full it evicts the least recently used key (allkeys-lru), which is
what a cache should do.
Keeping its data
By default Redis keeps nothing on disk, so a restart empties it.
REDIS_PERSISTENCE says what it keeps: off (the default), snapshots (a
snapshot every few minutes; a restart comes back warm) or store (every write
kept, and nothing evicted: noeviction, whatever REDIS_MAXMEMORY_POLICY
says). Set it in vallic.yaml or for one environment
under Service settings. It works as
Valkey's does: on the machine's own disk,
and in the nightly backup as a store.
From your own computer — a desktop client, a browser — vallic tunnel <env> redis opens it on 127.0.0.1:6379. See Tunnels.
Versions
| Version | Status |
|---|---|
8.6 |
Supported, and the default |
8.10 |
Supported |
8.4 |
Supported |
8.2 |
Supported |
Pin the version, not the build: name 8.6 and the platform matches it to the
current build, so a security rebuild reaches you without anybody editing a
repository.
What you can change
In vallic.yaml — what each one does is on Service settings:
services:
- redis:
version: '8.6'
environment:
REDIS_MAXMEMORY_POLICY: …
REDIS_DATABASES: …
REDIS_PERSISTENCE: …
Anything not on this list refuses the deploy, naming the variable — rather than being accepted and quietly ignored.
Thank you. Good to know it helped.
Thanks — tell us what was missing. Open a ticket from Support in the console, and we answer on the ticket. Open the console