Skip to main content

Function: createMemoryRequestRateLimitStore()

createMemoryRequestRateLimitStore(): RequestRateLimitStore

Defined in: memoryStores.ts:244

In-memory reference RequestRateLimitStore, keyed by address and purpose. Records are pruned on read, so the map does not grow without bound.

For tests and local development. A production deployment wants this shared across instances — a table with an index on (email, purpose, requested_at), or a Redis counter — because a per-process limiter caps each replica separately and so lets the fleet send N times the intended rate.

Returns

RequestRateLimitStore