Update redis.md

Signed-off-by: wxbty <38374721+wxbty@users.noreply.github.com>
This commit is contained in:
wxbty 2022-10-27 13:54:44 +08:00 committed by GitHub
parent 914b2192e1
commit 830b4c2076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -90,7 +90,7 @@ An HTTP 204 (No Content) and empty body is returned if successful.
- `get` - `get`
You can get a record in Redis using the `get` operation. This get a key where you set. You can get a record in Redis using the `get` operation. This gets a key that was previously set.
### Request ### Request
@ -118,7 +118,7 @@ You can get a record in Redis using the `get` operation. This get a key where yo
- `delete` - `delete`
You can delete multiple records in Redis using the `delete` operation. There is at least one key in metadata, {key: xxx}, if there are more than one, append key1, key2... You can delete a record in Redis using the `delete` operation. Returns success whether the key exists or not.
### Request ### Request
@ -126,8 +126,7 @@ You can delete multiple records in Redis using the `delete` operation. There is
{ {
"operation": "delete", "operation": "delete",
"metadata": { "metadata": {
"key": "key_a", "key": "key1"
"key1" : "key_b"
} }
} }
``` ```