Simple cache service is a cache mechanism for your application. Simple cache service runs in-memory mode thus your cached datas lost after service stopped.
run with docker
docker run -p 8080:8080 monar2/simple-cache-service
cahce runs in-memory
POST /cache/ HTTP/1.1
Host: localhost:8085
Content-Type: application/json
Cache-Control: no-cache
{
"key":"test5",
"value":"test"
}
POST /cache/ HTTP/1.1
Host: localhost:8085
Content-Type: application/json
Cache-Control: no-cache
{
"key":"test5",
"value":"test",
"expireAtMillisecond": 30000
}
POST /cache/ HTTP/1.1
Host: localhost:8085
Content-Type: application/json
Cache-Control: no-cache
{
"key":"test1",
"value":"test",
"expireAtTime":"2022-10-12 20:25:00"
}
curl -X GET http://localhost:8085/cache/{KEY}
curl -X GET http://localhost:8085/cache