Redis
Redis is used for state management, caching, and vector search.Installation
Docker Setup
Quick Start
Connection String Format
Environment Variables
CLI
Use Cases
- Session state caching
- Rate limiting
- Temporary data storage
- Vector search (Redis Stack)
When to Use
✅ Good for:- Session caching
- Rate limiting
- Real-time features
- Pub/sub messaging
- Long-term storage
- Complex queries
- Large datasets
Storage Backend (Advanced)
For training data, sessions, and general persistence, use theRedisBackend:
CLI Usage
RedisBackend Features
| Feature | Description |
|---|---|
| TTL Support | Automatic expiration with ttl parameter |
| Key Prefixing | Namespace isolation with prefix parameter |
| Sub-ms Latency | High-speed caching |
| Distributed | Shared state across nodes |

