java.lang.Object
net.i2p.router.web.helpers.NetDbRenderer.CacheEntry
Enclosing class:
NetDbRenderer

private static class NetDbRenderer.CacheEntryextends Object
Internal class to hold reverse DNS cache entries with expiration time.
  • Field Details

    • value

      String value
      The cached value of a display cache entry.
    • expiresAt

      long expiresAt
      When the cache entry expires.
  • Constructor Details

    • CacheEntry

      CacheEntry(String value, long ttlMillis)
      Builds one display cache entry.
      Parameters:
      value - the value to cache
      ttlMillis - how long the entry stays valid
  • Method Details

    • isExpired

      boolean isExpired()
      Checks whether the entry is past its expiry.
      Returns:
      true if expired