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

[Doc] Added doc for APPEND command #696

Merged
merged 3 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions website/docs/commands/api-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Note that this list is subject to change as we continue to expand our API comman
| | [PFMERGE](analytics.md#pfmerge) | ➕ | |
| | PFSELFTEST | ➖ | |
| <span id="keys">**KEYS**</span> | COPY | ➖ | |
| | [DEL](generic-commands.md#del) | ➕ | |
| | [DEL](generic-commands.md#del) | ➕ | |
| | DUMP | ➖ | |
| | [EXISTS](generic-commands.md#exists) | ➕ | |
| | [EXPIRE](generic-commands.md#expire) | ➕ | |
Expand Down Expand Up @@ -377,7 +377,7 @@ Note that this list is subject to change as we continue to expand our API comman
| | XREVRANGE | ➖ | |
| | XSETID | ➖ | |
| | XTRIM | ➖ | |
| <span id="string">**STRING**</span> | APPEND | ➕ | |
| <span id="string">**STRING**</span> | [APPEND](raw-string.md#append) | ➕ | |
| | [DECR](raw-string.md#decr) | ➕ | |
| | [DECRBY](raw-string.md#decrby) | ➕ | |
| | [GET](raw-string.md#get) | ➕ | |
Expand Down
16 changes: 16 additions & 0 deletions website/docs/commands/raw-string.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ title: Raw String

# Raw String Commands

### APPEND

#### Syntax

```bash
APPEND key value
```

If key already exists and is a string, this command appends the value at the end of the string. If key does not exist it is created and set as an empty string.

#### RESP Reply

Integer reply: the length of the string after the append operation.

---

### DECR

#### Syntax
Expand Down