table of contents
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¶
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.
2024-08-08 | perl v5.38.2 |