Fixed-window counter per key. It holds at most maxKeys keys and drops the oldest when full.
maxKeys
Number of keys tracked now.
Counts one hit for key. Returns false when the key was already over its budget.
key
True when key has used its budget in the current window.
Removes keys whose window has ended.
Fixed-window counter per key. It holds at most
maxKeyskeys and drops the oldest when full.