Valkey is an in-memory key-value store that speaks the same protocol as Redis, so Redis libraries and tools work with it too. Typical uses are caching, sessions, queues or counters for a bot or a web application. You manage the service in the same panel as your game servers.

Order Valkey

Open the Apps page, pick the cache card and click Configure service. In the order wizard you also find Valkey in the Apps category. In the Configuration step you only choose the Memory (RAM): 1 or 2 GB. The password is created during setup and shown in the panel afterwards.

Find the connection details

Open the service under My servers and click Service. Under Connection you find three ready-made lines: one for Node.js, one for Python and a redis:// address. All three contain the password, so they are hidden. The eye icon shows them, and Copy takes the whole line.

The address looks like this:

redis://:PASSWORD@HOST:PORT

The host and port are also shown at the top of the server page under Server address. Your service has its own port assigned by the panel. The Redis default port 6379 will not connect.

Connect

Use valkey-cli or redis-cli to test the connection from your computer:

redis-cli -u "redis://:PASSWORD@HOST:PORT" ping

If you get PONG back, the connection works. In your code, store the address as an environment variable, for example REDIS_URL. For Node.js with the redis package:

const { createClient } = require('redis');
const client = createClient({ url: process.env.REDIS_URL });
await client.connect();
await client.set('visits', 1);

For Python with the redis package:

import os, redis
r = redis.from_url(os.environ["REDIS_URL"])
r.set("visits", 1)

Memory limit

Under Maximum memory the panel shows how much data Valkey may hold. That is half of the RAM after a 128 MiB system reserve, so 448 MiB with 1 GB and 960 MiB with 2 GB. The rest stays free for snapshots and the running service.

When the limit is reached, Valkey does not remove old keys on its own, and new write commands fail. Give your keys an expiry time if they are only cached, for example SET key value EX 3600 for one hour. If the space is too small for good, book more RAM.

Change the password

Under Password, click Regenerate password and confirm. A running service restarts and existing connections are closed. The connection lines then contain the new password. Update them right away in every application that uses the cache.

Data and backups

Valkey regularly writes its data as a snapshot to the file dump.rdb, so your keys are back after a restart. Writes from the last seconds before a crash can be missing. Keep data you must not lose in a database. Backups saves the files of the service, including dump.rdb.

Common errors

  • NOAUTH Authentication required: Your application connects without a password. Use the whole line from the panel, it contains the password.
  • WRONGPASS invalid username-password pair: The password is wrong. If you regenerated it, your application is probably still using the old one.
  • OOM command not allowed when used memory > 'maxmemory': The memory limit is reached. Delete keys you no longer need, set expiry times or book more RAM.
  • No response or a timeout: Check that you use the port from the panel and that the service is running.