Properties
Protected
Readonly
maxRequests
maxRequests: number
Protected
redisClient
redisClient: any
Protected
Readonly
ttl
ttl: number
Methods
isRatelimited
- isRatelimited(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): Promise<IsRatelimitedResponse>
-
Parameters
-
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
Create a new instance of RedisRatelimiter