Redis
Key-value storage, caching, and counters via Redis. Natural pairing with the@radaros/queue package (BullMQ/Redis).
Requires the
ioredis peer dependency.Quick Start
Config
Redis connection URL. Falls back to
REDIS_URL env var.Namespace prefix prepended to all keys (e.g.
myapp: makes key foo into myapp:foo).Max keys to return in list operations.
Tools
| Tool | Description |
|---|---|
redis_get | Get the value of a key. |
redis_set | Set a key-value pair with optional TTL (seconds). |
redis_delete | Delete one or more keys. |
redis_list_keys | List keys matching a glob pattern (uses SCAN). |
redis_increment | Increment a numeric key by a given amount. |
Peer Dependency
Environment Variables
| Variable | Description |
|---|---|
REDIS_URL | Redis connection URL (e.g. redis://localhost:6379) |