droidjahangir / nestjs-mongodb-redis-cache

Integrate redis cache to nest app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install these depandancy packages from npm

npm install --save @liaoliaots/nestjs-redis ioredis

Spin up this application using docker-compose orcastration tool docker-compose up --build

request these endpoint to test

post request http://localhost:3000/demo

body: {
  "name":"test name",
  "age":4,
  "gender":"women",
  "email":"test@gmail.com"
}

get request http://localhost:3000/demo

response should getting data from redis caching server

About

Integrate redis cache to nest app


Languages

Language:TypeScript 90.0%Language:JavaScript 8.1%Language:Dockerfile 2.0%