Scroll to navigation

Zonemaster::Engine::Nameserver::Cache(3pm) User Contributed Perl Documentation Zonemaster::Engine::Nameserver::Cache(3pm)

NAME

Zonemaster::Engine::Nameserver::Cache - shared caches for nameserver objects

SYNOPSIS

    This class should not be used directly.

ATTRIBUTES

A Net::IP::XS object holding the nameserver's address.
A reference to a hash holding the cache of sent queries. Not meant for external use.

CLASS METHODS

    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.

    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.

Clear the cache.
2024-04-22 perl v5.38.2