RedisCacheOptions
Defined in: packages/core/src/redis-cache.ts:24
Options for RedisCache.
Properties
Section titled “Properties”client
Section titled “client”client:
RedisCommandClient
Defined in: packages/core/src/redis-cache.ts:26
The Redis client. Bun.RedisClient works as it is; for ioredis pass { send: (c, a) => redis.call(c, ...a) }.
members?
Section titled “members?”
optionalmembers?:boolean
Defined in: packages/core/src/redis-cache.ts:30
Store members and their users. Default true.
onError?
Section titled “onError?”
optionalonError?: (operation,error) =>void
Defined in: packages/core/src/redis-cache.ts:34
Called when a write fails. Writes never throw into the Gateway.
Parameters
Section titled “Parameters”operation
Section titled “operation”string
unknown
Returns
Section titled “Returns”void
prefix?
Section titled “prefix?”
optionalprefix?:string
Defined in: packages/core/src/redis-cache.ts:28
Key prefix. Default "lunibee:cache:"; keys are versioned under it (…v1:…).
ttlSeconds?
Section titled “ttlSeconds?”
optionalttlSeconds?:number
Defined in: packages/core/src/redis-cache.ts:32
Expire every key this many seconds after its last write. Default: never.