소스 정보
- 저장소
- Dev-Toolbelt/dev-team-agents
- 최근 소스 활동
- 2026년 5월 11일 16:18
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill redis명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | redis |
| description | Redis — data structures, keyspace, persistence, clustering, pub/sub. |
Load when the project uses Redis (signal: redis, ioredis, redis-py, REDIS_URL, redis: in docker-compose, Laravel CACHE_DRIVER=redis).
redis-cli -h "${REDIS_HOST:-localhost}" -p "${REDIS_PORT:-6379}" -a "$REDIS_PASSWORD"
# with TLS (Redis 6+):
redis-cli -h "$REDIS_HOST" -p "${REDIS_PORT:-6380}" --tls -a "$REDIS_PASSWORD"
# using URL:
redis-cli -u "$REDIS_URL"
Key inspection commands:
redis-cli INFO server # version, uptime, mode
redis-cli INFO memory # used_memory, maxmemory, fragmentation
redis-cli INFO stats # ops/sec, hits, misses
redis-cli --latency # rolling latency histogram
redis-cli --bigkeys # scan for large keys (use on low-traffic periods)
redis-cli MONITOR # real-time command stream (dev only; high overhead)
| Type | Use when | Key commands |
|---|---|---|
| String | Counters, cached values, sessions, feature flags | GET, SET, INCR, SETNX, GETSET |
| Hash | Object fields; partial updates without serializing whole object | HGET, HSET, HMGET, HINCRBY |
| List | Queues (FIFO/LIFO), activity feeds, message buffers | LPUSH, RPOP, BRPOP, LRANGE, LLEN |
| Set | Unique membership, tags, social graph intersections | SADD, SMEMBERS, SINTER, SDIFF |
| Sorted Set | Leaderboards, rate-limit windows, priority queues | ZADD, ZRANGE, ZRANK, ZRANGEBYSCORE |
| Bitmap | Compact boolean arrays (e.g., daily active users by index) | SETBIT, GETBIT, BITCOUNT, BITOP |
| HyperLogLog | Cardinality estimation with ~0.81% error, fixed 12 KB | PFADD, PFCOUNT, PFMERGE |
| Stream | Persistent, ordered event log; consumer groups | XADD, XREAD, XGROUP CREATE, XACK |
user:{id}:profile, session:{token}, ratelimit:{ip}:{minute}: as separator (convention); avoid spaces and special charsTTL on every cached key — never let cache grow unboundedlyuser:* patterns are fine; avoid * scans in production — use SCAN with MATCH and COUNT| Mode | Guarantees | Use when |
|---|---|---|
| No persistence | None (data lost on restart) | Pure cache, ephemeral queues |
| RDB (snapshot) | Point-in-time snapshot at intervals | Low RPO tolerance; fast restarts |
| AOF (append-only file) | Logs every write; fsync policy controls durability | Higher durability; larger disk use |
| RDB + AOF | Best of both | Production with data that must survive restarts |
AOF fsync options: always (safest, slowest), everysec (default, 1 s data loss risk), no (OS decides).
Set maxmemory and maxmemory-policy in redis.conf or at runtime:
| Policy | Behaviour |
|---|---|
noeviction | Returns error when memory full (default) |
allkeys-lru | Evict least recently used from all keys |
volatile-lru | Evict LRU from keys with TTL only |
allkeys-lfu | Evict least frequently used (Redis 4+) |
volatile-ttl | Evict key with shortest TTL first |
For a pure cache: use allkeys-lru or allkeys-lfu.
| Mode | Topology | When |
|---|---|---|
| Standalone | Single node | Dev / low-traffic |
| Sentinel | 1 primary + N replicas + sentinel processes | HA without sharding |
| Cluster | 16384 hash slots across N primaries | Horizontal scale + HA |
{user:123}:profile and {user:123}:sessions land on the same slotWAIT command for synchronous replication confirmation| Feature | Pub/Sub | Streams |
|---|---|---|
| Message persistence | None (fire-and-forget) | Yes — messages stored in log |
| Consumer groups | No | Yes — each group reads independently |
| At-least-once delivery | No | Yes — XACK acknowledgement |
| Backpressure | No | Yes — MAXLEN trim |
Use Streams for durable event queues; use Pub/Sub for lightweight real-time notifications only.
| Gotcha | Fix |
|---|---|
KEYS * blocks the event loop | Use SCAN with MATCH and COUNT 100 |
Large HGETALL on a hash with thousands of fields | Use HSCAN or restructure |
| No TTL on session keys → memory leak | Set TTL on every write; use OBJECT IDLETIME to audit |
SETNX + EXPIRE is not atomic | Use SET key value NX EX seconds (single command) |
| Cluster: cross-slot multi-key operations fail | Use hash tags {...} to co-locate related keys |
| AOF rewrite pauses | Schedule BGREWRITEAOF during low-traffic windows |