Zonema...isCache(3pm)

πŸ“¦
version 8.001.001 Β· 3 versions
, in ubuntu stonking

✨ 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. SERVFAIL or no response at all πŸ™ˆ), then the cache time is fixed to 1200 seconds 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