public void remove(final K key) { if (key != null) { self.remove(key); } }
public void remove(final K key) { if (key != null) { self.remove(key); } }
@Override public void onValueChanged(Object key) { Element e = cache.getQuiet(key); // hit the underlying cache and does not change lastAccessTime if (e != null){ if (!triggerRefreshIfNeeded(e)){ cache.remove(key); } } }
public void run(){ if (e.getVersion() == signature){ // triple check try{ V newValue = getDirectly((K)e.getObjectKey()); if (newValue == null){ cache.remove(e.getObjectKey()); }else{ cache.put(new Element((K)e.getObjectKey(), newValue)); } }catch(Exception ex){ logger.warn("Failed to update the value associated with specified key '{}' in cache '{}'", e.getObjectKey(), cache.getName(), ex); } } } });