Skip to content

WriteRedis

Source: src/Railway/WriteRedis.ts

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

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

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