UNPKG

redis-sliding-rate-limiter

Version:

Flexible and performant rate limiter based on sliding window algorithm with arbitrary precision

8 lines (7 loc) 300 B
import { Strategy } from './Strategy'; import { RateLimiterResponse } from '../RateLimiter'; export declare class RedisStrategy extends Strategy { sendCommand(cmd: string, ...args: any[]): Promise<any>; loadScript(): Promise<string>; execScript(key: any): Promise<RateLimiterResponse>; }