MemoryRateLimitStorage
MemoryRateLimitStorage
In-memory storage implementation for rate limiting. Suitable for single-instance applications.
Signature
class MemoryRateLimitStorage implements RateLimitStorage {
get(key: string) => Promise<number>;
set(key: string, value: number) => Promise<void>;
delete(key: string) => Promise<void>;
}
- Implements:
RateLimitStorage