Home > @opengovsg/rate-limit > createRateLimiter
createRateLimiter() function
Create a rate limiter backed by the injected Redis client, or by in-memory counters when no client is configured.
Signature:
typescript
createRateLimiter: (options: CreateRateLimiterOptions) => RateLimiterParameters
| Parameter | Type | Description |
|---|---|---|
| options | CreateRateLimiterOptions |
Returns: