diff --git a/topics/persistence.md b/topics/persistence.md index fa1bbe86..20c9f923 100644 --- a/topics/persistence.md +++ b/topics/persistence.md @@ -68,6 +68,16 @@ dataset to disk every 60 seconds if at least 1000 keys changed: This strategy is known as _snapshotting_. +## No persistence + +If you prefer **not** to have persistence (for example when using a Valkey instance solely as a cache) that is also a possibility. + +RDB snapshotting is enabled by default. To disable it, set the `save` configuration parameter to the empty string `""` and remove any excess `save` lines that are present in the current configuration file. + + save "" + +Alternatively, you can also use the `--save ""` argument on the `valkey-server` binary. + ### How it works Whenever Valkey needs to dump the dataset to disk, this is what happens: