ILimiterStrategy
ref / ratelimiter / ILimiterStrategy
Defines the contract for a rate-limiting algorithm (Strategy).
Properties
options
ts
readonly options?: Record<string, unknown>;
The configuration options used to create this strategy instance.
Methods
check
ts
check(key: string, storage: IStorageEngine): Promise<LimitResult>;
Called on every incoming request that matches the rule.