add cache examples

This commit is contained in:
Asim Aslam
2021-05-19 15:43:07 +01:00
parent ae087c987e
commit 404efc861e

36
cache/examples.json vendored Normal file
View File

@@ -0,0 +1,36 @@
{
"get": [{
"title": "Get a value",
"description": "Get returns a value from the cache",
"request": {
"key": "foo"
},
"response": {
"key": "foo",
"value": "bar",
"ttl": 0
}
}],
"set": [{
"title": "Set a value",
"description": "Set allows you to set a value",
"request": {
"key": "foo",
"value": "bar"
},
"response": {
"status": "ok"
}
}],
"set": [{
"title": "Delete a value",
"description": "Delete a value from the cache",
"request": {
"key": "foo"
},
"response": {
"status": "ok"
}
}]
}