java.lang.Object
net.i2p.router.web.helpers.NetDbRenderer.CacheEntry
- Enclosing class:
NetDbRenderer
Internal class to hold reverse DNS cache entries with expiration time.
Field Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescription(package private) booleanChecks whether the entry is past its expiry.
Field Details
value
String valueThe cached value of a display cache entry.expiresAt
long expiresAtWhen the cache entry expires.
Constructor Details
CacheEntry
CacheEntry(String value, long ttlMillis) Builds one display cache entry.- Parameters:
value- the value to cachettlMillis- how long the entry stays valid
Method Details
isExpired
boolean isExpired()Checks whether the entry is past its expiry.- Returns:
- true if expired