dotnet-cache

A simple dotnet-cache which uses MemoryCache.

Endpoints

  1. set cache
curl -X 'POST' \
  'http://localhost:8080/cache/set?duration=300' \
  -H 'Content-Type: application/json' \
  -d '{
  "value": "sample"
}'
  1. get cache
curl -X 'GET' \
  'http://localhost:8080/cache/get/<GUID>'
  1. count cached items
curl -X 'GET' \
  'http://localhost:8080/cache/count'
  1. delete cache
curl -X 'DELETE' \
  'http://localhost:8080/cache/remove/<GUID>'