diff options
author | AmineChikhaoui <amine.chikhaoui91@gmail.com> | 2018-04-02T16·41+0100 |
---|---|---|
committer | AmineChikhaoui <amine.chikhaoui91@gmail.com> | 2018-04-06T09·51+0100 |
commit | 86930ed414f9243ca75679b924bf26f5940eb8c9 (patch) | |
tree | d664c44a63968dd0774c4ab55200f23a601077aa /src | |
parent | 2855c3d965bab5e88c4cd08dc3a92e705ff5ac9f (diff) |
add documentation for the local disk cache TTL config
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/globals.hh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 36c8b7357904..00147f615f49 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -310,15 +310,17 @@ public: "Disabled substituters that may be enabled via the substituters option by untrusted users.", {"trusted-binary-caches"}}; - Setting<int> ttlNegativeDiskCache{this, 3600, "negative-disk-cache-ttl", - "The TTL in seconds for negative lookups in the disk cache."}; - - Setting<int> ttlPositiveDiskCache{this, 30 * 24 * 3600, "positive-disk-cache-ttl", - "The TTL in seconds for positive lookups in the disk cache."}; - Setting<Strings> trustedUsers{this, {"root"}, "trusted-users", "Which users or groups are trusted to ask the daemon to do unsafe things."}; + Setting<unsigned int> ttlNegativeDiskCache{this, 3600, "negative-disk-cache-ttl", + "The TTL in seconds for negative lookups in the disk cache i.e binary cache lookups that " + "return an invalid path result"}; + + Setting<unsigned int> ttlPositiveDiskCache{this, 30 * 24 * 3600, "positive-disk-cache-ttl", + "The TTL in seconds for positive lookups in the disk cache i.e binary cache lookups that " + "return a valid path result."}; + /* ?Who we trust to use the daemon in safe ways */ Setting<Strings> allowedUsers{this, {"*"}, "allowed-users", "Which users or groups are allowed to connect to the daemon."}; |