Skip to content

WriteRedis

Source: src/Fly/WriteRedis.ts

Bind a Redis database with write access (set, del).

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

const cache = yield* Fly.WriteRedis(Cache);
yield* cache.set("marker", "hello");