Zonemaster::Engine::Nameserver::Cache::RedisCache3pm
Global shared caches for nameserver objects
Usage
This is a global caching layer.
Attributes
Subclass of Zonemaster::Engine::Nameserver::Cache.
Class methods
new
|
Construct a new Cache object. |
|---|---|
set_key($idx, $packet)
|
Store |
get_key($idx)
|
Retrieve |
Cache time is the shortest time of TTL in the DNS packet and cache.redis.expire in the profile. Default value of cache.redis.expire is 300 seconds.
If there is no TTL value to be used in the DNS packet (e.g. SERVFAIL or no response), then cache time is fixed to 1200 seconds instead.