public void addToEntry(final K key, final V value) { cache.execute( new SmartCache.SmartCacheTask<K, V>() { public void execute(Iterator<Map.Entry<K, V>> iterator) { // iterator is ignored, // we're updating a single entry and // we have the key. if (cache.get(key) == null) { cache.put(key, value); } else { cache.get(key).addAll(value); } } }); }
public V get(K key) { return cache.get(key); }
public void clear() { cache.clear(); }
public V put(final K key, final V value) { return cache.put(key, value); }