Zonema...::Cache(3pm)
β¨ NAME β¨
ok so bestie, welcome to Zonema...::Cache(3pm) β the man page for Zonemaster::Engine::Nameserver::Cache, aka the place where shared caches for nameserver objects live π
that's it. that's the whole vibe. shared caches. for nameserver objects. slay π
π SYNOPSIS π
This class should not be used directly.
ngl this is the most important line on the whole page. do NOT touch this class directly, bestie. it's giving "internal plumbing only". the pieces that own it will handle it, you just live your life π
π¦ ATTRIBUTES π¦
addressβ aNet::IP::XSobject that holds the nameserver's address π that's literally it, that's the whole attribute.dataβ a reference to a hash holding the cache of sent queries. not meant for external use, so likeβ¦ don't. hands off, queen π this one's housekeeping.
πΈ CLASS METHODS πΈ
get_cache_type()
my $cache_type = get_cache_type( Zonemaster::Engine::Profile->effective );
grab the cache type value out of the profile β which is just the name of the cache module you're supposed to be using β¨
- takes a
Zonemaster::Engine::Profileobject - returns a string
iconic, straightforward, no drama π
get_cache_class()
my $cache_class = get_cache_class( 'LocalCache' );
get the cache adapter class for whatever database type you hand it π₯
- takes a string (the cache database type)
- returns a stringβ¦ OR throws an exception if the cache adapter class cannot be loaded π so like, be ready for that. wrap it, bestie. don't just rawdog an exception.
empty_cache()
clear the cache. periodt. π§Ήπ
that's the whole method. no args, no return value to obsess over, it just wipes it clean and moves on π
and that's the page!! every single thing that was on it is still on it, we just made it cute π«Ά
cute sign-off time: this lil man page is running on perl v5.40.1, dated 2026-03-21, and it lives under the Zonema...::Cache(3pm) heading πΈ take care of her, she's doing important cache work behind the scenes β¨π
π¦ where this page comes from
- ubuntu stonking: libzonemaster-perl 8.001.001-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms