Redis Cache Skill
SkillDatabases & dataCache data, manage sessions, and use pub/sub messaging via the Redis server running at {{REDIS_HOST}}:{{REDIS_PORT}} in your Docker network.
Use Redis Cache Skill in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Redis Cache Skill and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Redis Cache Skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by bidewio/better-openclaw in skills/redis-cache/SKILL.md and read by Ahel’s review.
Redis is available at {{REDIS_HOST}}:{{REDIS_PORT}} within the Docker network.
Caching
To cache a value, use the Redis CLI or HTTP API through the sandbox shell:
redis-cli -h {{REDIS_HOST}} -p {{REDIS_PORT}} -a $REDIS_PASSWORD SET mykey "myvalue" EX 3600
redis-cli -h {{REDIS_HOST}} -p {{REDIS_PORT}} -a $REDIS_PASSWORD GET mykey
Pub/Sub
Publish messages to channels for real-time communication between services.
# Publish a message to a channel
redis-cli -h {{REDIS_HOST}} -p {{REDIS_PORT}} -a $REDIS_PASSWORD PUBLISH openclaw:events '{"type":"task_complete","id":"abc123"}'
# Subscribe to a channel (in a separate process)
redis-cli -h {{REDIS_HOST}} -p {{REDIS_PORT}} -a $REDIS_PASSWORD SUBSCRIBE openclaw:events
Hash Operations
Store structured data efficiently using Redis hashes:
# Set multiple fields on a hash
redis-cli -h {{REDIS_HOST}} -p {{REDIS_PORT}} -a $REDIS_PASSWORD HSET openclaw:session:user1 name "Alice" role "admin" last_seen "$(date -Iseconds)"
# Get all fields from a hash
redis-cli -h {{REDIS_HOST}} -p {{REDIS_PORT}} -a $REDIS_PASSWORD HGETALL openclaw:session:user1
List-Based Queues
Use Redis lists as lightweight task queues:
# Push a task onto the queue
redis-cli -h {{REDIS_HOST}} -p {{REDIS_PORT}} -a $REDIS_PASSWORD LPUSH openclaw:queue:tasks '{"action":"process","file":"input.csv"}'
# Pop a task from the queue (blocking)
redis-cli -h {{REDIS_HOST}} -p {{REDIS_PORT}} -a $REDIS_PASSWORD BRPOP openclaw:queue:tasks 30
Key Patterns
- Use
openclaw:cache:*prefix for cache entries - Use
openclaw:session:*for session data - Use
openclaw:queue:*for task queues - Use
openclaw:lock:*for distributed locks - Use
openclaw:rate:*for rate-limiting counters
Tips for AI Agents
- Always set a TTL (
EXfor seconds,PXfor milliseconds) on cache keys to avoid memory leaks. - Use
SETNXorSET ... NXfor distributed locking to prevent race conditions. - Prefer
MGET/MSETfor batch operations to reduce round-trips. - Check connectivity with
redis-cli -h {{REDIS_HOST}} -p {{REDIS_PORT}} -a $REDIS_PASSWORD PINGbefore running complex operations. - Use
SCANinstead ofKEYSin production to avoid blocking the server.
Signals
- GitHub stars
- 58
- Forks
- 6
- Last commit
- Aug 2026
Ahel review
S4info
community integration, published by bidewio, not redis
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Item type
- skill
- Key
redis-cache- Source
- github.com/bidewio/better-openclaw
github.com/bidewio/better-openclaw
More in Databases & data
Skill · coreyhaines31
More in Databases & datasupabase
Skill · supabase
More in Databases & dataconnect
Skill · composiohq
More in Databases & dataazure-kusto
Skill · microsoft
More in Databases & datarevops
Skill · coreyhaines31
More in Databases & dataagentic-os
Skill · affaan-m
More in Databases & data