FixedWindowStrategy
ref / ratelimiter / FixedWindowStrategy
Implements the Fixed Window rate-limiting algorithm.
Implements
ts
ILimiterStrategy<FixedWindowState>Constructors
ts
FixedWindowStrategy(options: FixedWindowStrategyOptions);Properties
options
ts
readonly options: FixedWindowStrategyOptions;Methods
check
ts
check(key: string, storage: IStorageEngine): Promise<LimitResult>;
Checks if a request is allowed to pass.