Skip to content

RedisCounterStoreOptions

Defined in: src/counters/redis.ts:30

Options for createRedisCounterStore.

Property Type Description Defined in
client? RedisClientType A pre-constructed (optionally pre-connected) node-redis client. src/counters/redis.ts:34
onError? (error) => void Observe client error events (a handler is always attached so errors never crash). src/counters/redis.ts:38
prefix? string Key namespace, joined with :. Default "entitlements:counters"; "" for none. src/counters/redis.ts:36
url? string Connection URL (e.g. redis://localhost:6379). Used when no client is given. src/counters/redis.ts:32