BIENVENUE10valid for the first month only! on all offersView plans
Skip to content
← Knowledge base

Use your managed Redis database (in-memory cache)

Connect to Redis (redis-cli, TLS, ACL), pub/sub, persistence and backups.

Use your managed Redis database

Redis is an in-memory key-value store. Host, port (6379) and password are in the panel’s Database tab.

1. Connect

redis-cli (CLI)

redis-cli -h <host> -p 6379 -a '<password>' --tls

--tls encrypts the connection. The -a flag prints a warning; prefer AUTH <password> once connected.

Driver (Node.js — ioredis)

import Redis from "ioredis"
const redis = new Redis("rediss://<password>@<host>:6379")

rediss:// = Redis over TLS.

2. Allow your IP

Add your IP under Database → Allowed IPs.

3. Common commands

SET key "value"         # write
GET key                 # read
DEL key                 # delete
EXPIRE key 60           # 60s TTL
KEYS *                  # list (avoid in prod, prefer SCAN)
INFO                    # server / memory info

4. Pub/Sub

# Terminal 1
SUBSCRIBE channel
# Terminal 2
PUBLISH channel "hello"

5. Persistence and backups

Redis persists to disk (RDB/AOF depending on the plan). Automatic backups are managed by onesubnet. For a manual export:

redis-cli -h <host> -p 6379 -a '<password>' --tls --rdb dump.rdb

References

Related products

oneSubnet

French hosting provider in Paris. High-performance game and voice servers.

SERVICES

Resources

LEGAL

All systems operational