Operation | Method | Endpoint |
---|---|---|
Create entry | POST | http://localhost:4000/cache |
Fetch item (place key in body e.g. { "key": "country" }) | GET | http://localhost:4000/cache |
Delete item | DELETE | http://localhost:4000/cache/del/:key |
Operation | Method | Endpoint |
---|---|---|
Fetch keys | GET | http://localhost:4000/cache/keys |
Fetch values | GET | http://localhost:4000/cache/values |
Fetch entries | GET | http://localhost:4000/cache/entries |
Fetch size | GET | http://localhost:4000/cache/size |
Fetch stats | GET | http://localhost:4000/cache/stats |
Delete all | DELETE | http://localhost:4000/cache/clear |
git clone https://github.com/krispi1/ZenCache-js.git
cd ZenCache-js
npm install or yarn
npm start or yarn start
npm test or yarn test