Change your application: migrate from Dragonfly to KiviDB
Clients connect unchanged; change the host, the port, the password, and TLS for KiviDB Cloud.
Clients connect unchanged; change the host, the port, the password, and TLS for KiviDB Cloud.
# Before
REDIS_URL=redis://:password@dragonfly.internal:6379
# After, KiviDB Cloud
REDIS_URL=rediss://kividbapp:password@your-name.cloud.kividb.io:6380
Python (redis-py)
# Before: Dragonfly's field expiry
r.execute_command("HSETEX", "session:42", 3600, "token", "abc")
# After: KiviDB (Redis 8 syntax)
r.execute_command("HSETEX", "session:42", "EX", 3600, "FIELDS", 1, "token", "abc")
# or
r.hset("session:42", "token", "abc")
r.hexpire("session:42", 3600, "token")
Node.js (ioredis)
// Before
await redis.call("HSETEX", "session:42", 3600, "token", "abc");
// After
await redis.call("HSETEX", "session:42", "EX", 3600, "FIELDS", 1, "token", "abc");
If the application connects in Dragonfly's emulated cluster mode with a cluster client, either switch to a plain client against one KiviDB server, or run a KiviDB cluster and keep the cluster client.