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 β€” a Net::IP::XS object 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::Profile object
  • 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