Skip to content
On this page

Redis

Hosting Redis on Fly is nice. node-resque is great for background jobs. Redcon is nice Redis based server.

I use Upstash as a serverless Redis.

Mini Redis is nice code to read to understand Redis internals.

Code

js
// rename keys
const keys = await redis.keys("*")
for (const key of keys) {
  if (key.includes("cache:")) {
    await redis.rename(key, key.replace("cache:", ""))
  }
}

Notes