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