]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
cache: make expiring TTL threshold compile time configurable
authorMarek Vavruša <mvavrusa@cloudflare.com>
Tue, 7 Aug 2018 00:08:13 +0000 (17:08 -0700)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Fri, 7 Sep 2018 17:45:21 +0000 (10:45 -0700)
commita9ac327c886f8e11193ad29b1893d2aeef8543ff
tree2c6e64d8046e673b76fa446ab4fb5fdb1a7bc208
parent8353cf8f54d910e8bbfeb9e3ce0e173a5d2b1c2d
cache: make expiring TTL threshold compile time configurable

By default the decayed TTL is considered as 'expiring' when it
is in the last 1% of its lifetime, or  shorter than 5 seconds.
lib/cache/impl.h
lib/defines.h