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

Zonemaster::Engine::Nameserver::Cache3pm

Shared caches for nameserver objects

Usage

    This class should not be used directly.

Attributes

address

A Net::IP::XS object holding the nameserver's address.

data

A reference to a hash holding the cache of sent queries. Not meant for external use.

Class methods

get_cache_type()
    my $cache_type = get_cache_type( Zonemaster::Engine::Profile->effective );

Get the cache type value from the profile, i.e. the name of the cache module to use.

Takes a Zonemaster::Engine::Profile object.

Returns a string.

get_cache_class()
    my $cache_class = get_cache_class( 'LocalCache' );

Get the cache adapter class for the given database type.

Takes a string (cache database type).

Returns a string, or throws an exception if the cache adapter class cannot be loaded.

empty_cache()

Clear the cache.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

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