Expand description
Fixed-window rate limiting (Rails 8 rate_limit to:, within:), backed by any
doido_cache::CacheStore.
Each key counts requests within a window; the stored entry carries the window start, so the window resets correctly regardless of the cache’s TTL support.
Structs§
- Rate
Limiter - Allow at most
limitrequests perwindow_secsper key.