Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[redis bindings][redo PR] Add GetDel support #3552

Merged
merged 6 commits into from
Jun 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ An HTTP 204 (No Content) and empty body is returned if successful.

You can get a record in Redis using the `get` operation. This gets a key that was previously set.

This takes an optional parameter `delete`, which is by default `false`. When it is set to `true`, this operation uses the `GETDEL` operation of Redis. For example, it returns the `value` which was previously set and then deletes it.

#### Request

```json
Expand All @@ -120,6 +122,20 @@ You can get a record in Redis using the `get` operation. This gets a key that wa
}
```

#### Request with delete flag

```json
{
"operation": "get",
"metadata": {
"key": "key1",
"delete": "true"
},
"data": {
}
}
```

### delete

You can delete a record in Redis using the `delete` operation. Returns success whether the key exists or not.
Expand Down
Loading