In-memory key-value store. Open-source fork of Redis, maintained by the Linux Foundation, and wire-compatible with Redis clients. Single instance with AOF persistence on a volume. Not reachable from the internet.
Install the CLI. See the install docs.
Log in:
runway login
Add an SSH key. See key setup, or use the shortcut:
runway local key setup
We are providing a template for one-click deployments of Valkey to Runway. You can either deploy Valkey from your browser, or on the command line via:
runway app create --app='my-valkey-cache' --plan='free-launch'
runway app deploy template --app='my-valkey-cache' --template='valkey'
After deployment,
runway app show --app='my-valkey-cache'
will display the connection details, so you can connect to your new Valkey from other apps.
Our Valkey template supports the following options:
appendfsync - How often the AOF is flushed to disk. ’everysec’ loses at most one
second on a crash. ‘always’ loses nothing but is much slower. (everysec, always, no)image_tag - Valkey version. 9.1 is current stable, 8.1 is the previous line. The AOF
format is forward-compatible, so upgrades need no dump. (9.1.2-alpine, 9.1.2-trixie, 8.1.10-alpine, 8.1.10-trixie)maxmemory_policy - What Valkey does when it hits the memory limit. ’noeviction’ rejects
writes — pick it when you use Valkey as a queue or a datastore.
‘allkeys-lru’ drops the least recently used key — pick it for a cache. (noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl)You can set them on the command line during deployment:
runway app deploy template --app='my-valkey-cache' --template='valkey' \
appendfsync=everysec \
image_tag=9.1.2-alpine \
maxmemory_policy=noeviction
Valkey is distributed under the BSD-3-Clause license - source code available at https://github.com/valkey-io/valkey.