On this page

Last updated: November 22, 2026

Redis and Valkey

The catalog offers Redis (7.4 and 7.2) and Valkey (8.0 and 7.2). Both speak the same protocol, so every Redis client works with Valkey too.

Connecting from your project

Apps in the same project reach the database at its private address. The service’s Connection tab shows the password and the in-cluster connection string. Linking the database to an app adds REDIS_URL, REDIS_HOST, REDIS_PORT and REDIS_PASSWORD (VALKEY_* for Valkey). This password is for your apps inside Guara Cloud only.

Public access

By default, the database is reachable only from inside your project. To connect from outside Guara Cloud, such as your computer, a CI job or Redis Insight, turn on public access in the service’s Connection tab, under Public access. Public access is available on every plan.

  • The first time, the database restarts once. Turning public access on for the first time restarts the database for a few seconds to add the public user. Your data is kept. Turning it off and on again later, or changing the allowed addresses, doesn’t restart it.
  • TLS is required. Use the public connection string shown in the panel: rediss://public:<password>@<slug>-<id>.db.guaracloud.com:6379.
  • A separate user. You connect as the user public, with its own password. It can read and write every key and use pub/sub, but it cannot run admin commands, flush the data (FLUSHALL, FLUSHDB, SWAPDB), or use MIGRATE or RESTORE.
  • Allowed addresses. Restrict access to specific IPv4 addresses or CIDR ranges. With an empty list, any address can try to connect, but only clients with the password get in.
  • Connection limit. The panel shows how many outside connections the database accepts at once. The limit counts every client together, so keep each app’s pool small enough that all of them stay under it (go-redis, for example, opens 10 connections per CPU by default).

Turning public access off, or removing an address from the list, refuses new connections immediately. Sessions already open stay until the client disconnects; restarting the database closes them all.

From the CLI, use guara db public, guara db public enable --allow <address>, and guara db public disable. See the CLI commands.

Connecting from a client

The platform routes each connection by the hostname the client sends during the TLS handshake (SNI). Python, Go, Java, .NET, PHP and Bun clients send it from the rediss:// URL, so they only need the connection string. These clients don’t send it on their own and need one setting:

redis-cli and valkey-cli. Pass the host to --sni as well. --askpass asks for the password instead of saving it in your shell history.

redis-cli --tls --sni <host> -h <host> -p 6379 --user public --askpass

ioredis.

const redis = new Redis(process.env.REDIS_PUBLIC_URL, { tls: { servername: '<host>' } });

node-redis.

const client = createClient({
  url: process.env.REDIS_PUBLIC_URL,
  socket: { servername: '<host>' },
});

Redis Insight. In the connection’s security settings, turn on Use TLS and Use SNI, and enter the host as the server name.

The Public access panel and guara db public show these commands with your host filled in.