Skip to content

ReadRedis

Source: src/Fly/ReadRedis.ts

Bind a Redis database with read access (get, ping).

ReadRedis is the Context tag, the type, and the callable — yield* Fly.ReadRedis(Cache). Provide ReadRedisHttp.

const cache = yield* Fly.ReadRedis(Cache);
const value = yield* cache.get("marker");