Agent skill
redis
Configure Redis for caching and data storage. Set up clustering, persistence, and Sentinel. Use when implementing Redis caching or queues.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/redis-bagelhole-devops-security-agen
Metadata
Additional technical details for this skill
- author
- devops-skills
- version
- 1.0
SKILL.md
Redis
Configure Redis for caching and data storage.
Installation & Setup
# Install
apt install redis-server
# Configuration
# /etc/redis/redis.conf
bind 0.0.0.0
protected-mode yes
requirepass yourpassword
maxmemory 256mb
maxmemory-policy allkeys-lru
Basic Operations
redis-cli -a yourpassword
# String operations
SET key "value"
GET key
SETEX key 3600 "value" # With TTL
# Hash
HSET user:1 name "John" email "[email protected]"
HGETALL user:1
# List
LPUSH queue "task1"
RPOP queue
Persistence
# RDB (snapshot)
save 900 1
save 300 10
# AOF (append-only file)
appendonly yes
appendfsync everysec
Sentinel (HA)
# sentinel.conf
sentinel monitor mymaster 10.0.0.1 6379 2
sentinel down-after-milliseconds mymaster 30000
sentinel failover-timeout mymaster 180000
Best Practices
- Set maxmemory and eviction policy
- Use persistence for critical data
- Implement Sentinel for HA
- Monitor memory usage
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?