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.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RedisCircuitStateStore(
options):RedisCircuitStateStore
Defined in: src/redis.ts:217
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”RedisCircuitStateStore
Methods
Section titled “Methods”get(
key):Promise<CircuitSnapshot|undefined>
Defined in: src/redis.ts:222
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<CircuitSnapshot | undefined>
Implementation of
Section titled “Implementation of”set(
key,snapshot):Promise<void>
Defined in: src/redis.ts:226
Parameters
Section titled “Parameters”string
snapshot
Section titled “snapshot”Returns
Section titled “Returns”Promise<void>