Skip to content

RateLimitManager

The RateLimitManager manages rate limiting with sliding window algorithm, supporting both in-memory and Redis-based storage.


Example Usage

# settings.py
GUARD_SECURITY_CONFIG = SecurityConfig(
    rate_limit=100,
    rate_limit_window=60,
    enable_rate_limiting=True,
    enable_redis=True,
    redis_url="redis://localhost:6379/0"
)

See Also