UsefulKey

Memory

In-memory fixed window and token bucket implementation.

Overview

  • In-memory rate limit store for single-process use. Supports fixed window and token bucket.

Usage

import { MemoryRateLimitStore, usefulkey } from "betterkey";

const rateLimitStore = new MemoryRateLimitStore();
const uk = usefulkey({ adapters: { rateLimitStore } });

Options

OptionTypeDefaultDescription
This adapter has no options.

Notes

  • Good for local development. Not distributed.