Skip to content

RedisFailurePolicy

RedisFailurePolicy = "degraded-local" | "fail-closed"

Defined in: packages/rest/src/redis.ts:245

What the store does when Redis cannot be reached.

  • degraded-local (default): limit from this processโ€™s last known state, report the mode change, and return to Redis when it answers again. Several processes limiting alone can together exceed a limit.
  • fail-closed: refuse to send. Requests fail with a RESTError of kind "coordination" until Redis answers.