Skip to content
Classrate-limiterv0.1.12

MemoryRateLimiter

The in-memory IRateLimiter with an exact sliding window per key. The gateway default behind core.rateLimiter.

Each key holds its live uses' expiry times. State is per-process and lost on restart. Expired keys are dropped on the first access at least a minute after the previous sweep.

class MemoryRateLimiter implements Store<"charge">

Member visibility

Filter class members by access level.

Showing members with Protected visibility and higher.

Properties

Methods

size

Number of keys currently tracked.

public get size(): number