Installation
Install node-redis using your preferred package manager:Quick Start
Connection Patterns
Basic Connection
Secure TLS Connections
Connect to Redis with TLS encryption:Redis Cloud Connection
Connect to Redis Cloud:Connection Events
Handle connection lifecycle events:Working with Data Structures
Hashes
Lists
Sets
Sorted Sets
Advanced Features
Pipelining
Batch multiple commands for better performance:Multi/Exec Transactions
Execute commands atomically:Watch for Optimistic Locking
Pub/Sub
Implement publish/subscribe messaging:Scan for Large Datasets
Iterate through keys efficiently:TypeScript Support
node-redis includes full TypeScript definitions:Starter Project
Redis JavaScript Starter Project
Clone the official starter project to get up and running quickly with complete examples and best practices.
Additional Resources
node-redis Documentation
Official node-redis documentation
Redis Commands
Complete Redis command reference
Data Types Guide
Learn about Redis data structures
GitHub Repository
node-redis source code and issues