summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorWang Yuan <wangyuan21@baidu.com>2021-10-25 18:08:34 +0800
committerGitHub <noreply@github.com>2021-10-25 13:08:34 +0300
commit9ec3294b97211fca206ade1c2d99ccfc762f5a73 (patch)
tree00e4d54b25211796c144cdf97302a6ca2ccc08b8 /redis.conf
parent085615af97c658530153e0040b35d8e65a384379 (diff)
downloadredis-9ec3294b97211fca206ade1c2d99ccfc762f5a73.tar.gz
Add timestamp annotations in AOF (#9326)
Add timestamp annotation in AOF, one part of #9325. Enabled with the new `aof-timestamp-enabled` config option. Timestamp annotation format is "#TS:${timestamp}\r\n"." TS" is short of timestamp and this method could save extra bytes in AOF. We can use timestamp annotation for some special functions. - know the executing time of commands - restore data to a specific point-in-time (by using redis-check-rdb to truncate the file)
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf
index 368cf3a73..bcb5fa022 100644
--- a/redis.conf
+++ b/redis.conf
@@ -1412,6 +1412,11 @@ aof-load-truncated yes
# tail.
aof-use-rdb-preamble yes
+# Redis supports recording timestamp annotations in the AOF to support restoring
+# the data from a specific point-in-time. However, using this capability changes
+# the AOF format in a way that may not be compatible with existing AOF parsers.
+aof-timestamp-enabled no
+
################################ LUA SCRIPTING ###############################
# Max execution time of a Lua script in milliseconds.