Skip to content

ReadRedis

Source: src/Railway/ReadRedis.ts

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

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

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