Redis Memory Backend
Developmentredis-memory-backendRedis Memory Backend is an Agent Skill for development published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Redis backend for conversation state persistence and caching
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/ai-agents-conversational/skills/redis-memory-backend/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/redis-memory-backend, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Redis Memory Backend Skill
Capabilities
- Configure Redis for conversation state storage
- Implement message history persistence
- Set up Redis caching for LLM responses
- Configure TTL-based memory expiration
- Implement Redis Pub/Sub for real-time updates
- Design efficient key schemas
Target Processes
- conversational-memory-system
- chatbot-design-implementation
Implementation Details
Core Components
- Message Store: RedisChatMessageHistory
- Cache: LLM response caching
- State Store: Conversation state persistence
- Pub/Sub: Real-time updates
Configuration Options
- Redis connection settings
- Key prefix configuration
- TTL settings
- Serialization format
- Cluster configuration
Key Schema Patterns
- session:{session_id}:messages
- cache:llm:{prompt_hash}
- state:{user_id}:{key}
Best Practices
- Use appropriate data structures
- Configure proper TTLs
- Implement connection pooling
- Monitor memory usage
Dependencies
- redis
- langchain-community (RedisChatMessageHistory)