@suluk/hono - v0.1.5
    Preparing search index...

    Interface RateLimitStore

    The swap point for a durable counter. consume atomically records one hit for key under the budget and reports whether it's now over. A production impl (KV / Durable Object) MUST be atomic-per-key; the in-memory default is per-instance and NOT durable, so it is dev-only.

    interface RateLimitStore {
        consume(
            key: string,
            opts: RateLimitConsumeOptions,
        ): RateLimitResult | Promise<RateLimitResult>;
    }

    Implemented by

    Index

    Methods

    Methods