This project demonstrates how to use Redis with Node.js in a production-ready setup.
- Node.js (v14 or later)
- Redis server
- Clone the repository
- Run
npm install
to install dependencies - Copy
.env.example
to.env
and update the Redis URL if necessary - Start your Redis server
- Run
node app.js
to execute the example
- String operations
- Hash operations
- List operations
- Set operations
- Sorted Set operations
- Key expiration
- Error handling
- Logging
config/
: Configuration filesservices/
: Service layer for Redis operationsutils/
: Utility functions (like logging)app.js
: Main application file
MIT