Package org.minidns.cache
Class ExtendedLruCache
java.lang.Object
org.minidns.DnsCache
org.minidns.cache.LruCache
org.minidns.cache.ExtendedLruCache
- Direct Known Subclasses:
FullLruCache
A variant of
LruCache
also using the data found in the sections for caching.-
Field Summary
Fields inherited from class org.minidns.cache.LruCache
backend, capacity, expireCount, hitCount, maxTTL, missCount
Fields inherited from class org.minidns.DnsCache
DEFAULT_CACHE_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
offer
(DnsMessage query, DnsQueryResult result, DnsName authoritativeZone) protected void
putNormalized
(DnsMessage q, DnsQueryResult result) protected boolean
shouldGather
(Record<? extends Data> extraRecord, Question question, DnsName authoritativeZone) Methods inherited from class org.minidns.cache.LruCache
clear, getExpireCount, getHitCount, getMissCount, getNormalized, toString
-
Constructor Details
-
ExtendedLruCache
public ExtendedLruCache() -
ExtendedLruCache
-
ExtendedLruCache
-
-
Method Details
-
putNormalized
- Overrides:
putNormalized
in classLruCache
-
offer
-
shouldGather
protected boolean shouldGather(Record<? extends Data> extraRecord, Question question, DnsName authoritativeZone)
-