code: private boolean isExpired(CacheEntry entry) {
          if (ttl == 0) {
              return false;
          }
  
          return entry.getTimestamp() + ttl < System.currentTimeMillis();
      }
docs: Checks whether this supplied {@link CacheEntry} should be ignored.