Zonemaster::Engine::Nameserver::Cache::RedisCache(3pm)

Zonemaster::Engine::Nameserver::Cache::RedisCache3pm

Global shared caches for nameserver objects

Usage

    This is a global caching layer.

Attributes

Subclass of Zonemaster::Engine::Nameserver::Cache.

Class methods

new

Construct a new Cache object.

set_key($idx, $packet)

Store $packet with key $idx.

get_key($idx)

Retrieve $packet (data) at key $idx.

Cache time is the shortest time of TTL in the DNS packet and cache.redis.expire in the profile. Default value of cache.redis.expire is 300 seconds.

If there is no TTL value to be used in the DNS packet (e.g. SERVFAIL or no response), then cache time is fixed to 1200 seconds instead.

From libzonemaster-perl 7.1.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.