Skip to content

BeechCMS


BeechCMS / @beechcms/core / IRateLimiter

Interface: IRateLimiter ​

Methods ​

checkLimit() ​

checkLimit(key): Promise<RateLimitResult>

Checks whether the given key is within the rate limit.

Parameters ​

key ​

string

Returns ​

Promise<RateLimitResult>


reset()? ​

optional reset(): void

Clears cached bucket state (for testing and isolation).

Returns ​

void