]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc/manager-client.rst: 'cache-clear' command added
authorAleš Mrázek <ales.mrazek@nic.cz>
Mon, 29 Jan 2024 14:09:28 +0000 (15:09 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Wed, 14 Feb 2024 12:14:30 +0000 (13:14 +0100)
doc/manager-client.rst

index 3c15804e67c7ec9561256b0b303cbebb8157be3f..3dcf20cc8b3b1d33ec6b43d1e7cca8211982dad0 100644 (file)
@@ -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 <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 <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:: <name>
+
+        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