From 404efc861e91a81cdd0a87f25ff522c5128087d7 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 19 May 2021 15:43:07 +0100 Subject: [PATCH] add cache examples --- cache/examples.json | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 cache/examples.json diff --git a/cache/examples.json b/cache/examples.json new file mode 100644 index 0000000..01bfb28 --- /dev/null +++ b/cache/examples.json @@ -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" + } + }] +}