Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.19 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.19 KB

Cache module

Backend task

The repo consists of below APIs:

  • GET /cache/key/:keyName //Returns the value corresponding to a key
  • GET /cache/allKeys //Returns all keys present
  • PUT /cache/:keyName //Update a key's value
  • DELETE /cache/:keyName //Delete a key from cache
  • POST /cache/deleteAll //Deletes all keys

Local Setup

Documentation

Go to the link below to get the access to the API documentation and API testing play ground: https://documenter.getpostman.com/view/10563214/SzYbyxRA?version=latest

Scripts

  • To install dependencies: Run npm install // Installs dependencies
  • To start the process: Run npm start // Runs the project
  • To run tests: Run npm test // Executes test cases
  • To run prettier: Run npm run pretty // Prettify the files with desired indentation and spacing.