Quick Start
1
Simple Usage
2
With Configuration
Hybrid setup — SQL for conversations, Redis for state:
How It Works
Redis is a state store — fast key-value access for agent preferences and runtime data. Conversation history usesdatabase_url separately.
Configuration Options
URL formats
Best Practices
Pair Redis with a SQL conversation backend
Pair Redis with a SQL conversation backend
Use
database_url for chat history and state_url for fast ephemeral state.Set TTL on ephemeral keys
Set TTL on ephemeral keys
Pass
ttl when storing session-scoped data that should expire automatically.Use a key prefix per environment
Use a key prefix per environment
Set
prefix="prod:" vs prefix="staging:" to isolate keys on a shared Redis instance.Enable persistence for durability
Enable persistence for durability
Configure Redis AOF or RDB snapshots if state must survive Redis restarts.
Related
MongoDB State Store
Document-based state with flexible schemas
Database Persistence
Overview of conversation and state backends

