Skip to content

Commit 4c88900

Browse files
authored
DEV: (cmds) add example to the CONFIG SET page (#2557)
1 parent 88de888 commit 4c88900

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

content/commands/config-set.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ It is possible to switch persistence from RDB snapshotting to append-only file
7272
(and the other way around) using the `CONFIG SET` command.
7373
See the [persistence page]({{< relref "/operate/oss_and_stack/management/persistence" >}}) for more information.
7474

75-
In general what you should know is that setting the `appendonly` parameter to
76-
`yes` will start a background process to save the initial append-only file
75+
```
76+
CONFIG SET appendonly yes
77+
```
78+
79+
Setting the `appendonly` parameter as shown above will start a background process to save the initial append-only file
7780
(obtained from the in memory data set), and will append all the subsequent
7881
commands on the append-only file, thus obtaining exactly the same effect of a
7982
Redis server that started with AOF turned on since the start.

0 commit comments

Comments
 (0)