MCPcopy
hub / github.com/tinyhttp/tinyhttp / Store

Interface Store

packages/rate-limit/src/memory-store.ts:1–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface Store {
2 incr: (key: string, callback: (error: Error | null, hits: number, resetTime: Date) => void) => void
3 decrement: (key: string) => void
4 resetAll: () => void
5 resetKey: (key: string) => void
6}
7
8export class MemoryStore implements Store {
9 hits = {}

Callers

nothing calls this directly

Implementers 1

MemoryStorepackages/rate-limit/src/memory-store.t

Calls

no outgoing calls

Tested by

no test coverage detected