method MemoryRateLimitStore.prototype.increment
MemoryRateLimitStore.prototype.increment(
key: string,
windowMs: number
): Promise<RateLimitResult>

Increment the counter for the given key within its window. Creates the window if it does not exist.

Parameters

key: string
windowMs: number

Return Type

Usage

import { MemoryRateLimitStore } from "auth-plugin/src/index.ts";