From 0afc8e932cbdb23e5a3a6599154868c1541ef9b2 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sat, 29 Apr 2023 22:23:44 +0800 Subject: [PATCH] add cache-checkpoint-time --- docs/configuration.md | 1 + en/docs/configuration.md | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index fe6c17d..0d7e5fc 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -22,6 +22,7 @@ hide: | cache-size | 域名结果缓存个数 | 自动,根据系统内存自动调整大小 | 大于等于 0 的数字 | cache-size 512 | | cache-persist | 是否持久化缓存 | 自动。
当 cache-file 所在的位置有超过 128 MB 的可用空间时启用,否则禁用。 | [yes\|no] | cache-persist yes | | cache-file | 缓存持久化文件路径 | /tmp/
smartdns.cache | 合法路径字符串 | cache-file /tmp/smartdns.cache | +| cache-checkpoint-time | 缓存持久化时间 | 0 | 0 或 大于120的数字, 0表示禁用周期持久化, 其他值表示定期持久化的时间。 | cache-checkpoint-time 0 | tcp-idle-time | TCP 链接空闲超时时间 | 120 | 大于等于 0 的数字 | tcp-idle-time 120 | | rr-ttl | 域名结果 TTL | 远程查询结果 | 大于 0 的数字 | rr-ttl 600 | | rr-ttl-min | 允许的最小 TTL 值 | 远程查询结果 | 大于 0 的数字 | rr-ttl-min 60 | diff --git a/en/docs/configuration.md b/en/docs/configuration.md index da3888a..2f60b38 100644 --- a/en/docs/configuration.md +++ b/en/docs/configuration.md @@ -18,6 +18,7 @@ hide: |cache-size|Domain name result cache number|Auto: Set cache site by memory size. |integer|cache-size 512 |cache-persist|enable persist cache|Auto: Enabled if the location of `cache-file` has more than 128MB of free space.|[yes\|no]|cache-persist yes |cache-file|cache persist file|/tmp/
smartdns.cache|path|cache-file /tmp/smartdns.cache +|cache-checkpoint-time| cache persist time | 0 | 0 or greater than 120, 0: disable, other: persis time in seconds | cache-checkpoint-time 0 |tcp-idle-time|TCP connection idle timeout|120|integer|tcp-idle-time 120 |rr-ttl|Domain name TTL|Remote query result|number greater than 0|rr-ttl 600 |rr-ttl-min|Domain name Minimum TTL|Remote query result|number greater than 0|rr-ttl-min 60