Skip to content

Home > @opengovsg/rate-limit > RateLimitConfig > prefix

RateLimitConfig.prefix property ​

Namespace segment isolating this limiter's counters from other limiters sharing the same store.

By default, steady counters are stored under rate-limit:<prefix>: and burst counters under rate-limit-burst:<prefix>:.

Signature:

typescript
prefix?: string;