MCPcopy Create free account
hub / github.com/banq/jdonframework / hasExpired

Method hasExpired

src/main/java/com/jdon/cache/UtilCache.java:444–451  ·  view source on GitHub ↗

Returns a boolean specifying whether or not the element corresponding to the key has expired. Only returns true if element is in cache and has expired. Error conditions return false, if no expireTable entry, returns true. Always returns false if expireTime <= 0. Also, if SoftReference in the CacheLi

(Object key)

Source from the content-addressed store, hash-verified

442 * expired, otherwise false
443 */
444 public boolean hasExpired(Object key) {
445 if (key == null)
446 return false;
447
448 CacheLine line = (CacheLine) cacheLineTable.get(key);
449
450 return hasExpired(line);
451 }
452
453 protected boolean hasExpired(CacheLine line) {
454 if (line == null)

Callers 3

getMethod · 0.95
containsKeyMethod · 0.95
clearExpiredMethod · 0.95

Calls 4

logWarningMethod · 0.95
getLoadTimeMethod · 0.80
getMethod · 0.65
getValueMethod · 0.45

Tested by

no test coverage detected