{"enrichment":{"faq":[{"a":"Redis supports five core data structures: strings, hashes, lists, sets, and sorted sets. Strings store simple key-value pairs using GET/SET commands. Hashes organize related fields with HGET/HSET. Lists maintain ordered elements via LPUSH/RPUSH. Sets store unique values with SADD/SMEMBERS. Sorted sets combine uniqueness with scoring using ZADD/ZRANGE. Each structure has specialized commands optimized for different access patterns and use cases.","q":"What are the main Redis data structures and how do I use Redis commands?"},{"a":"Redis offers two persistence mechanisms. RDB (Redis Database) creates point-in-time snapshots at intervals or after a set number of writes\u2014fast but may lose recent data. AOF (Append-Only File) logs every write operation, providing better durability but larger file sizes. Configure both in redis.conf: set 'save' directives for RDB snapshots and 'appendonly yes' for AOF. Combine them for maximum safety: RDB for recovery speed, AOF for data loss prevention.","q":"How do I configure redis persistence with RDB and AOF?"},{"a":"Redis master-slave replication synchronizes data across instances. On the slave, execute SLAVEOF master_ip master_port or configure 'slaveof' in redis.conf. The slave connects to the master, performs an initial full sync (PSYNC), then receives incremental updates. Use ROLE command to verify replication status. For high availability, combine replication with Sentinel to auto-failover if the master fails.","q":"What's the process for setting up redis master slave replication?"},{"a":"Redis distributed locks prevent concurrent access to shared resources. Set a lock key with SET key value NX EX seconds\u2014NX ensures atomicity (only succeeds if absent), EX sets expiration to prevent deadlocks. Use a unique value (UUID) to safely delete only your lock. For complex scenarios, use Redlock algorithm across multiple Redis instances. Monitor lock contention and adjust TTL based on operation duration.","q":"How can I implement redis distributed lock implementation for concurrency?"},{"a":"Redis provides multiple monitoring tools. SLOWLOG GET captures slow commands exceeding a threshold (slowlog-max-len in config). INFO command returns memory, CPU, and replication stats. MONITOR shows real-time commands. Use redis-cli --stat for live metrics. For memory issues, MEMORY DOCTOR analyzes usage patterns. CLIENT LIST tracks connections. Enable slow query logging, set appropriate timeouts, and regularly analyze INFO output to detect bottlenecks early.","q":"What techniques help with redis performance monitoring and troubleshooting?"},{"a":"Big keys consume excessive memory and slow operations. Detect them using redis-cli --bigkeys for a quick scan, or MEMORY DOCTOR for detailed analysis. Use STRLEN for strings, HLEN for hashes, LLEN for lists to measure sizes. Optimize by splitting large hashes into smaller ones, sharding big lists across keys, or compressing values. Monitor key sizes regularly and set alerts for anomalies to prevent performance degradation.","q":"How do I detect and optimize big keys in redis?"}],"shadow_tags":["in-memory-store","distributed-caching","session-management","queue-processing","real-time-analytics","high-availability","data-persistence","cluster-orchestration"],"summary_rewrite":"Master Redis operations across strings, hashes, lists, sets, and sorted sets with real-world examples. Learn persistence strategies, replication setup, and cluster configuration alongside performance monitoring and troubleshooting techniques."},"files":[{"bytes":5742,"path":"database/redis/SKILL.md","sha256":"f7b4d441c6fe15f4286c5e150fc36d855b5e662485f12592122a16f530492002","url":"https://skillfed.io/files/chaterm/terminal-skills/redis/44abd153/SKILL.md"}],"id":"chaterm/terminal-skills/redis","links":{"html":"https://skillfed.io/chaterm/terminal-skills/redis","md":"https://skillfed.io/chaterm/terminal-skills/redis.md","repo":"https://github.com/chaterm/terminal-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":12,"language":null,"last_updated":"2026-03-03","license":"Apache-2.0","name":"redis","publisher":"chaterm","stars":50},"relations":{"similar":[{"id":"pluginagentmarketplace/custom-plugin-sql/redis"},{"id":"personamanagmentlayer/pcl/redis-expert"},{"id":"BagelHole/DevOps-Security-Agent-Skills/redis"},{"id":"Mindrally/skills/redis-best-practices"},{"id":"intellectronica/agent-skills/upstash-redis-kv"},{"id":"Aradotso/hermes-skills/hermes-agentmesh-async-bus"},{"id":"olasunkanmi-SE/codebuddy/redis"},{"id":"secondsky/claude-skills/bun-redis"},{"id":"redis/agent-skills/redis-security"},{"id":"aliyun/alibabacloud-aiops-skills/alibabacloud-kvstore-health-inspection"}]},"slug":{"owner":"chaterm","repo":"terminal-skills","skill":"redis"},"version":"44abd153"}
