# Redis

> Manage Redis via the redis-cli. Use when interacting with Redis caches, queues, or key-value stores.

- Skill: `fworks-tech/redis` (Agent Skill)
- Install (CLI): `npx skillmds@latest add fworks-tech/redis`
- Raw SKILL.md: https://api.skillmd.com/api/skills/fworks-tech/redis/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: fworks-tech (https://skillmd.com/u/fworks-tech)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/fworks-tech/redis

---


# redis-cli

Use `redis-cli` to interact with Redis instances.

## Common Commands

### Connection
- Connect: `redis-cli -h <host> -p <port>`
- Authenticate: `AUTH <password>`
- Ping: `PING`

### Key Operations
- Get value: `GET <key>`
- Set value: `SET <key> <value>`
- Delete key: `DEL <key>`
- Check existence: `EXISTS <key>`
- Set with expiry: `SETEX <key> <seconds> <value>`

### Inspection
- List all keys: `KEYS <pattern>`
- Key type: `TYPE <key>`
- TTL: `TTL <key>`
- Memory usage: `MEMORY USAGE <key>`
- Info: `INFO`

## Notes
- `KEYS *` is blocking on production — use `SCAN` for large datasets
- Default port is 6379

