From: Aleš Mrázek Date: Mon, 29 Jan 2024 14:09:28 +0000 (+0100) Subject: doc/manager-client.rst: 'cache-clear' command added X-Git-Tag: v6.0.7~23^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13449aa8a33bcf90a4d98421835caa3b86b62a2b;p=thirdparty%2Fknot-resolver.git doc/manager-client.rst: 'cache-clear' command added --- diff --git a/doc/manager-client.rst b/doc/manager-client.rst index 3c15804e6..3dcf20cc8 100644 --- a/doc/manager-client.rst +++ b/doc/manager-client.rst @@ -158,6 +158,38 @@ Only one of these arguments can be selected during the execution of a single ``k $ kresctl metrics ./metrics/data.txt +.. option:: cache-clear + + Purge cache records matching specified criteria. + + .. option:: --exact-name + + If set, only records with the same name are removed. + + .. option:: --rr-type + + Optional, you may additionally specify the type to remove, + but that is only supported with :option:`--exact-name` flag set. + + .. option:: --chunk-size + + :default: 100 + + Optional, the number of records to remove in one round. + The purpose is not to block the resolver for long. + The resolver repeats the command after one millisecond until all matching data are cleared. + + .. option:: + + Optional, subtree to purge; if the name isn't provided, + whole cache is purged (and any other parameters are disregarded). + + .. code-block:: bash + + $ kresctl cache-clear + $ kresctl cache-clear example.com. + $ kresctl cache-clear --exact-name example.com. + .. option:: schema