public Object get(Object key) { synchronized(mutex) {return cache.get(key);} }
public void put(Object key, Object value) { synchronized(mutex) {cache.put(key, value);} }
public void close() { synchronized(mutex) {cache.close();} }
/** * Returns a thread-safe cache backed by the specified cache. * In order to guarantee thread-safety, all access to the backed cache must * be accomplished through the returned cache. */ public static Cache synchronizedCache(Cache cache) { return cache.getSynchronizedCache(); }
public boolean containsKey(Object key) { synchronized(mutex) {return cache.containsKey(key);} }
/** * Returns a thread-safe cache backed by the specified cache. * In order to guarantee thread-safety, all access to the backed cache must * be accomplished through the returned cache. */ public static Cache synchronizedCache(Cache cache) { return cache.getSynchronizedCache(); }
public boolean containsKey(Object key) { synchronized(mutex) {return cache.containsKey(key);} }
public Object get(Object key) { synchronized(mutex) {return cache.get(key);} }
public void put(Object key, Object value) { synchronized(mutex) {cache.put(key, value);} }
public void close() { synchronized(mutex) {cache.close();} }