File: README.rst

package info (click to toggle)
knot-resolver 6.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,392 kB
  • sloc: javascript: 42,732; ansic: 40,312; python: 12,616; cpp: 2,121; sh: 1,997; xml: 193; makefile: 181
file content (18 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.. SPDX-License-Identifier: GPL-3.0-or-later

.. _mod-prefetch:

Expiring records
----------------

The ``prefetch`` module helps to keep the cache hot by prefetching expiring records.

This mechanism is activated when the module is loaded and it is not configurable.

.. code-block:: lua

	modules.load('prefetch')


Any time the resolver answers with records that are about to expire, they get refreshed. (see :c:func:`is_expiring`)
That improves latency for records which get frequently queried, relatively to their TTL.