Home > @opengovsg/rate-limit > CreateRateLimiterOptions > client
CreateRateLimiterOptions.client property
The Redis client backing the limiter's counters. When absent or null, the limiter falls back to in-memory counters, which are per-instance and not shared across replicas.
Signature:
typescript
client?: RedisClient | null;