From 476efa249e115a9f5e089b295cdff92ea18086c8 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Wed, 9 Oct 2024 21:20:50 +0200 Subject: [PATCH 1/5] No persistence Signed-off-by: Melroy van den Berg --- topics/persistence.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/topics/persistence.md b/topics/persistence.md index fa1bbe86..3ac982f2 100644 --- a/topics/persistence.md +++ b/topics/persistence.md @@ -68,6 +68,15 @@ 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 (eg. when using a Valkey instance solely as a cache) that is also possibility. + +First comment out or remove all existing `save` lines that are present in the current configuration file. +Then add the following configuration instead: + + save "" + ### How it works Whenever Valkey needs to dump the dataset to disk, this is what happens: From 6ed07e26e76b84d208d245bcba7251620a127e48 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Wed, 9 Oct 2024 22:14:57 +0200 Subject: [PATCH 2/5] Mention the --save CLI argument Signed-off-by: Melroy van den Berg --- topics/persistence.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/topics/persistence.md b/topics/persistence.md index 3ac982f2..e25f2465 100644 --- a/topics/persistence.md +++ b/topics/persistence.md @@ -77,6 +77,8 @@ Then add the following configuration instead: 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: From 441533bdba8a806d600e7f999a6da3bbd913bc1b Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Thu, 10 Oct 2024 00:55:20 +0200 Subject: [PATCH 3/5] Update persistence.md Signed-off-by: Melroy van den Berg --- topics/persistence.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topics/persistence.md b/topics/persistence.md index e25f2465..78a2f031 100644 --- a/topics/persistence.md +++ b/topics/persistence.md @@ -70,7 +70,7 @@ This strategy is known as _snapshotting_. ## No persistence -If you prefer **not** to have persistence (eg. when using a Valkey instance solely as a cache) that is also possibility. +If you prefer **not** to have persistence (eg. when using a Valkey instance solely as a cache) that is also a possibility. First comment out or remove all existing `save` lines that are present in the current configuration file. Then add the following configuration instead: From 6521d54df0083d83326aa1fa8fbc75e6191b0031 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Thu, 10 Oct 2024 13:02:51 +0200 Subject: [PATCH 4/5] Update topics/persistence.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Viktor Söderqvist Signed-off-by: Melroy van den Berg --- topics/persistence.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/topics/persistence.md b/topics/persistence.md index 78a2f031..38054e77 100644 --- a/topics/persistence.md +++ b/topics/persistence.md @@ -72,8 +72,7 @@ This strategy is known as _snapshotting_. If you prefer **not** to have persistence (eg. when using a Valkey instance solely as a cache) that is also a possibility. -First comment out or remove all existing `save` lines that are present in the current configuration file. -Then add the following configuration instead: +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 "" From 3b8d64b31d927c64ce959f07822e43682a5c61f0 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Thu, 10 Oct 2024 13:03:31 +0200 Subject: [PATCH 5/5] Update topics/persistence.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Viktor Söderqvist Signed-off-by: Melroy van den Berg --- topics/persistence.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topics/persistence.md b/topics/persistence.md index 38054e77..20c9f923 100644 --- a/topics/persistence.md +++ b/topics/persistence.md @@ -70,7 +70,7 @@ This strategy is known as _snapshotting_. ## No persistence -If you prefer **not** to have persistence (eg. when using a Valkey instance solely as a cache) that is also a possibility. +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.