Unverified Commit aaf71b38 authored by Itamar Haber's avatar Itamar Haber Committed by GitHub
Browse files

Fix description of the save conf directive (#8337)

The line that said:

Note: you can disable saving completely by commenting out all "save" lines

was incorrect.

Also, note that the save values used in the default redis.conf file are different than the server's defaults, so this PR also addresses this and introduces a potential behavior change for some users.
parent a29aec9a
...@@ -326,30 +326,29 @@ databases 16 ...@@ -326,30 +326,29 @@ databases 16
always-show-logo no always-show-logo no
################################ SNAPSHOTTING ################################ ################################ SNAPSHOTTING ################################
# Save the DB to disk.
# #
# Save the DB on disk: # save <seconds> <changes>
# #
# save <seconds> <changes> # Redis will save the DB if both the given number of seconds and the given
# number of write operations against the DB occurred.
# #
# Will save the DB if both the given number of seconds and the given # Snapshotting can be completely disabled with a single empty string argument
# number of write operations against the DB occurred. # as in following example:
# #
# In the example below the behavior will be to save: # save ""
# after 900 sec (15 min) if at least 1 key changed
# after 300 sec (5 min) if at least 10 keys changed
# after 60 sec if at least 10000 keys changed
# #
# Note: you can disable saving completely by commenting out all "save" lines. # Unless specified otherwise, by default Redis will save the DB:
# * After 3600 seconds (an hour) if at least 1 key changed
# * After 300 seconds (5 minutes) if at least 10 keys changed
# * After 60 seconds if at least 10000 keys changed
# #
# It is also possible to remove all the previously configured save # You can set these explicitly by uncommenting the three following lines.
# points by adding a save directive with a single empty string argument
# like in the following example:
# #
# save "" # save 3600 1
# save 300 100
save 900 1 # save 60 10000
save 300 10
save 60 10000
# By default Redis will stop accepting writes if RDB snapshots are enabled # By default Redis will stop accepting writes if RDB snapshots are enabled
# (at least one save point) and the latest background save failed. # (at least one save point) and the latest background save failed.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment