This is a NestJS project template that demonstrates how to integrate Redis into your NestJS application. Redis is a powerful in-memory data store that can be used for caching, session management, and more.
- NestJS: A progressive Node.js framework for building efficient, scalable, and maintainable server-side applications.
- Redis: A fast and versatile in-memory key-value data store.
Before you begin, ensure you have met the following requirements:
- Node.js installed (at least version 14)
- npm or yarn installed
- Redis server running (you can use Docker or install it locally)
- Clone this repository:
git clone https://github.com/Primeshheshan/cashing.git
cd caching- Install dependencies:
npm install
# or
yarn install- Create your own env file:
REDIS_HOST=
REDIS_PORT=
REDIS_USERNAME=
REDIS_PASSWORD=- Spin up local environment:
# for nest app
npm run start:dev
# for redis cache
docker compose up