charge(
key: string,
window: RateLimitWindow
): Promise<RateLimitResult>Parameter:
keyThe bucket to charge. Build it from your own scope, or with buildKey.
Parameter:
windowThe usage window to apply.
peek(
key: string,
window: RateLimitWindow
): Promise<RateLimitResult>