Zonema...isCache(3pm)
β¨ NAME β¨
Zonemaster::Engine::Nameserver::Cache::RedisCache β bestie, it's the global shared caches for nameserver objects π
(and yes the header of this page calls it Zonema...isCache(3pm) because the terminal only gives a girl so many columns, ok π the manual is 3pm perl module docs, you knew that)
π¦ SYNOPSIS π¦
This is a global caching layer.
that's it. that's the whole synopsis. main character energy with zero extra words π
π ATTRIBUTES π
- Subclass of
Zonemaster::Engine::Nameserver::Cacheβ so it inherits all that parent energy, no cap π«Ά
π CLASS METHODS π
new
Construct a new Cache object. brand new, fresh out the box, slay β¨
set_key($idx, $packet)
Store $packet with key $idx. like putting your snack in the fridge with a lil label on it π
get_key($idx)
Retrieve $packet (data) at key $idx. it's giving "yes babe I saved it for you" π
okay so here's the tea on how long stuff gets kept β
Cache time is the shortest time of the TTL in the DNS packet and cache.redis.expire in the profile. Whichever one is shorter wins, periodt.
The default value of cache.redis.expire is 300 seconds.
β οΈ and if there's no TTL value to be used in the DNS packet (e.g.SERVFAILor no response at all π), then the cache time is fixed to1200seconds instead. no vibe check available, it just picks that one π
mwah kisses, this page is perl v5.40.1 coded on 2026-03-21, and it lives in the User Contributed Perl Documentation section as Zonema...isCache(3pm). go forth and cache responsibly, bestie ππ¦πΈ
π¦ 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