darto_rate_limit 1.0.0
darto_rate_limit: ^1.0.0 copied to clipboard
Distributed RateLimitStore backends for Darto — RedisRateLimitStore plugs into the core rateLimit() middleware to share counters across instances.
1.0.0 #
- Initial release.
RedisRateLimitStore— distributed [RateLimitStore] backend, drop-in for the corerateLimit()middleware. Uses a single Lua script per hit (INCR+ conditionalPEXPIRE+PTTL) so concurrent hits from multiple instances always agree on the same window.prefixparameter to namespace keys (defaults to'rl:').close()releases the underlying connection.