What problem does it solve?
ioredis removes the complexity of reliably connecting to Redis and using its core patterns (pipelines, transactions, Pub/Sub, scripting, and clustering) from Node.js applications.
Core Features & Use Cases
- Connection setup & configuration: Create clients for standalone, Cluster, and Sentinel, including TLS, retry strategies, and lifecycle management.
- High-throughput operations: Use pipelines for batching and multi/exec transactions for atomic multi-step updates.
- Messaging & server-side logic: Implement Pub/Sub and Lua-based commands for custom, efficient behavior inside Redis.
- Use case: When you need a Node.js app to quickly read/write many keys, publish events to subscribers, and run an atomic Lua operation across multiple keys, ioredis provides the primitives and configuration to do it correctly.
Quick Start
Use the ioredis skill to generate the correct Node.js code and options for connecting to your Redis instance, then perform a safe pipeline or transaction for your key operations.