Instructions
git clone https://github.com/lourencelinao/redis-test.git
npm install
- Start redis server
npm run dev
- Use an API platform such as Postman.
- Execute a get request on URL
http://localhost:3000/store
First request will fetch from an API and will log 'Fetched from API' Subsequent request will fectch from redis cache and will log 'Fetched from cache'
- Open a new terminal
- Run
npm run subscriber:dev
Publisher is publishing a count since the server is served. Subscriber should receive the count message.
Will make a fully messaging app utilizing redis.