/** * INTERNAL: * Return true if this object is set as invalid or has expired. */ public boolean isInvalidated(CacheKey key, long currentTimeMillis) { if (key.getInvalidationState() == CacheKey.CACHE_KEY_INVALID) { return true; } return getExpiryTimeInMillis(key) <= currentTimeMillis; }
/** * INTERNAL: * Return true if this object is set as invalid or has expired. */ public boolean isInvalidated(CacheKey key, long currentTimeMillis) { if (key.getInvalidationState() == CacheKey.CACHE_KEY_INVALID) { return true; } return getExpiryTimeInMillis(key) <= currentTimeMillis; }
/** * INTERNAL: * Return true if this object is set as invalid or has expired. */ public boolean isInvalidated(CacheKey key, long currentTimeMillis) { if (key.getInvalidationState() == CacheKey.CACHE_KEY_INVALID) { return true; } return getExpiryTimeInMillis(key) <= currentTimeMillis; }