/** * @param item * @throws IOException */ @Override public void update( ICacheElement<K, V> item ) throws IOException { update( item, getListenerId() ); }
/** * @param cacheName * @param key * @return ICacheElement<K, V> if found. * @throws IOException */ @Override public ICacheElement<K, V> get( String cacheName, K key ) throws IOException { return get( cacheName, key, getListenerId() ); }
/** * @param cacheName * @throws IOException */ @Override public void removeAll( String cacheName ) throws IOException { removeAll( cacheName, getListenerId() ); }
/** * Uses the default listener id and calls the next remove method. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheService#remove(java.lang.String, * java.io.Serializable) */ @Override public void remove( String cacheName, K key ) throws IOException { remove( cacheName, key, getListenerId() ); }
/** * @param item * @throws IOException */ @Override public void update( ICacheElement<K, V> item ) throws IOException { update( item, getListenerId() ); }
/** * Uses the default listener id and calls the next remove method. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheService#remove(String, Object) */ @Override public void remove( String cacheName, K key ) throws IOException { remove( cacheName, key, getListenerId() ); }
/** * @param cacheName * @param key * @return ICacheElement<K, V> if found. * @throws IOException */ @Override public ICacheElement<K, V> get( String cacheName, K key ) throws IOException { return get( cacheName, key, getListenerId() ); }
/** * @param cacheName * @throws IOException */ @Override public void removeAll( String cacheName ) throws IOException { removeAll( cacheName, getListenerId() ); }
/** * Gets multiple items from the cache based on the given set of keys. * <p> * @param cacheName * @param keys * @return a map of K key to ICacheElement<K, V> element, or an empty map if there is no * data in cache for any of these keys * @throws IOException */ @Override public Map<K, ICacheElement<K, V>> getMultiple( String cacheName, Set<K> keys ) throws IOException { return getMultiple( cacheName, keys, getListenerId() ); }
/** * If allow get is true, we will issue a getmatching query. * <p> * @param cacheName * @param pattern * @return a map of K key to ICacheElement<K, V> element, or an empty map if there is no * data in cache matching the pattern. * @throws IOException */ @Override public Map<K, ICacheElement<K, V>> getMatching( String cacheName, String pattern ) throws IOException { return getMatching( cacheName, pattern, getListenerId() ); }
/** * If allow get is true, we will issue a getmatching query. * <p> * @param cacheName * @param pattern * @return a map of K key to ICacheElement<K, V> element, or an empty map if there is no * data in cache matching the pattern. * @throws IOException */ @Override public Map<K, ICacheElement<K, V>> getMatching( String cacheName, String pattern ) throws IOException { return getMatching( cacheName, pattern, getListenerId() ); }
/** * Gets multiple items from the cache based on the given set of keys. * <p> * @param cacheName * @param keys * @return a map of K key to ICacheElement<K, V> element, or an empty map if there is no * data in cache for any of these keys * @throws IOException */ @Override public Map<K, ICacheElement<K, V>> getMultiple( String cacheName, Set<K> keys ) throws IOException { return getMultiple( cacheName, keys, getListenerId() ); }