An in-memory cache micro service based on freecache https://github.com/coocood/freecache. Designed for use as a linked Docker container; therefore has no security added.
POST:
URL: http://localhost:3010/rs/cache/set
Example Request
{
"key": "testkey1",
"value": "kens test value"
}
Example Response
{
"success": true
}
GET:
URL: http://localhost:3010/rs/cache/get/testkey1
Example Response
{
"success": true,
"value": "kens test value"
}
POST:
URL: http://localhost:3010/rs/cache/set
Example Request
{
"key": "testkey1",
"value": "ew0KICAgInNvbWVBdHRyIjoic29tZVZhbCIsDQogICAiYW5vdGhlckF0dHIiOiJhbm90aGVyVmFsIg0KfQ=="
}
Example Response
{
"success": true
}
GET:
URL: http://localhost:3010/rs/cache/get/testkey1
Example Response
{
"success": true,
"value": "ew0KICAgInNvbWVBdHRyIjoic29tZVZhbCIsDQogICAiYW5vdGhlckF0dHIiOiJhbm90aGVyVmFsIg0KfQ=="
}
GET:
URL: http://localhost:3010/rs/cache/get/testkey1
Example Response
{
"success": false,
"value": ""
}
DELETE:
URL: http://localhost:3010/rs/cache/delete/testkey1
Example Response
{
"success": true
}
docker run --network=ulbora_bridge --name cache --log-opt max-size=50m --restart=always -d ulboralabs/cache sh
Content type
Image
Digest
Size
60.7 MB
Last updated
over 8 years ago
docker pull ulboralabs/cache