release: bump version to 0.3.0
- Refactor Redis backend connection handling and pool management - Update algorithm implementations with improved type annotations - Enhance config loader validation with stricter Pydantic schemas - Improve decorator and middleware error handling - Expand example scripts with better docstrings and usage patterns - Add new 00_basic_usage.py example for quick start - Reorganize examples directory structure - Fix type annotation inconsistencies across core modules - Update dependencies in pyproject.toml
This commit is contained in:
@@ -188,16 +188,19 @@ async def rate_limit_handler(request: Request, exc: RateLimitExceeded):
|
||||
## Backends
|
||||
|
||||
### MemoryBackend (Default)
|
||||
|
||||
- In-memory storage with LRU eviction
|
||||
- Best for single-process applications
|
||||
- No persistence across restarts
|
||||
|
||||
### SQLiteBackend
|
||||
|
||||
- Persistent storage using SQLite
|
||||
- WAL mode for better performance
|
||||
- Suitable for single-node deployments
|
||||
|
||||
### RedisBackend
|
||||
|
||||
- Distributed storage using Redis
|
||||
- Required for multi-node deployments
|
||||
- Supports atomic operations via Lua scripts
|
||||
|
||||
Reference in New Issue
Block a user