Package org.minidns.cache
Class FullLruCache
java.lang.Object
org.minidns.DnsCache
org.minidns.cache.LruCache
org.minidns.cache.ExtendedLruCache
org.minidns.cache.FullLruCache
An insecure variant of
LruCache also using all the data found in the sections of an answer.-
Field Summary
Fields inherited from class org.minidns.cache.LruCache
backend, capacity, expireCount, hitCount, maxTTL, missCountFields inherited from class org.minidns.DnsCache
DEFAULT_CACHE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanshouldGather(org.minidns.record.Record<? extends org.minidns.record.Data> extraRecord, org.minidns.dnsmessage.Question question, org.minidns.dnsname.DnsName authoritativeZone) Methods inherited from class org.minidns.cache.ExtendedLruCache
offer, putNormalizedMethods inherited from class org.minidns.cache.LruCache
clear, getExpireCount, getHitCount, getMissCount, getNormalized, toString
-
Constructor Details
-
FullLruCache
public FullLruCache() -
FullLruCache
public FullLruCache(int capacity) -
FullLruCache
public FullLruCache(int capacity, long maxTTL)
-
-
Method Details
-
shouldGather
protected boolean shouldGather(org.minidns.record.Record<? extends org.minidns.record.Data> extraRecord, org.minidns.dnsmessage.Question question, org.minidns.dnsname.DnsName authoritativeZone) - Overrides:
shouldGatherin classExtendedLruCache
-