Skip to content

fromBunRedis

fromBunRedis(client): MinimalRedisClient

Defined in: packages/rest/src/redis.ts:216

Adapts Bun’s built-in Bun.RedisClient (or anything with send(command, args)) to MinimalRedisClient, with eval.

const store = new RedisRateLimitStore({
client: fromBunRedis(new Bun.RedisClient(process.env.REDIS_URL)),
});

MinimalRedisClient