Connecting to Redis on Layerbase Cloud

Redis instances expose the Redis protocol for standard clients and an HTTP-compatible path for edge runtimes.

Best for: Caching, queues, rate limits, session stores, and apps that already use Redis client libraries.

1

Open your database in the dashboard

Go to /cloud, click the database you just created, and the connection panel shows the host, port, username, password, and a ready-to-paste connection string for the engine.

Use the generated password from Quick Connect. The username is usually default unless the dashboard shows otherwise.

2

TLS is required, on by default

Use rediss:// URLs or enable TLS in your Redis client.

Redis protocol over TLS on port 6379

3

Use any standard client

Redis works with the normal client family for that engine. Start with the dashboard snippet, then move the same URL and credentials into your app environment.

If your client has separate direct, pooled, TLS, or HTTP options, prefer the exact variant shown in Quick Connect.

bashRedis
redis-cli -u "rediss://default:password@your-host.cloud.layerbase.dev:6379" ping

Redis notes

  • Use the REST endpoint when your runtime cannot open raw TCP sockets.
  • Redis licensing means some deployments may prefer Valkey for long-term open-source compatibility.