1
0
Fork 0
knot-resolver/utils/cache_gc
Daniel Baumann fbc604e215
Adding upstream version 5.7.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 13:56:17 +02:00
..
test.integr Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
.gitignore Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
categories.c Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
categories.h Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
db.c Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
db.h Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
kr_cache_gc.c Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
kr_cache_gc.h Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
main.c Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
meson.build Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
README.rst Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00

.. SPDX-License-Identifier: GPL-3.0-or-later

.. _garbage-collector:

Garbage Collector
-----------------

.. note:: When using systemd, ``kres-cache-gc.service`` is enabled by default
   and does not need any manual configuration.

Knot Resolver employs a separate garbage collector daemon which periodically
trims the cache to keep its size below size limit configured using
:envvar:`cache.size`.

To execute the daemon manually, you can use the following command to run it
every second:

.. code-block:: bash

   $ kres-cache-gc -c /var/cache/knot-resolver -d 1000