Skip to content

RedisCircuitStateStore

Defined in: src/redis.ts:213

CircuitStateStore over Redis: a write only lands if its updatedAt is newer than the stored one. Keys don’t expire.

new RedisCircuitStateStore(options): RedisCircuitStateStore

Defined in: src/redis.ts:217

RedisStoreOptions

RedisCircuitStateStore

get(key): Promise<CircuitSnapshot | undefined>

Defined in: src/redis.ts:222

string

Promise<CircuitSnapshot | undefined>

CircuitStateStore.get


set(key, snapshot): Promise<void>

Defined in: src/redis.ts:226

string

CircuitSnapshot

Promise<void>

CircuitStateStore.set