179180181182183184185186
return Collections.unmodifiableList(values); } else { return Collections.emptyList(); } } catch (Throwable t) { throw new CacheException(t); } }
211212213214215216217218
public long getMemoryStoreSize() { try { return cache.getMemoryStoreSize(); } catch (Throwable t) { throw new CacheException(t); } }
226227228229230231232233
*/ public long getDiskStoreSize() { try { return cache.getDiskStoreSize(); } catch (Throwable t) { throw new CacheException(t); } }
172173174175176177178179
log.info("Using existing EHCache named [" + cache.getName() + "]"); } } return new EhCache<K, V>(cache); } catch (net.sf.ehcache.CacheException e) { throw new CacheException(e); } }
221222223224225226227228
log.debug("implicit cacheManager created successfully."); } } return this.manager; } catch (Exception e) { throw new CacheException(e); } }
210211212213214215216217
264265266267268269270271
} cacheManagerImplicitlyCreated = true; } return this.manager; } catch (Exception e) { throw new CacheException(e); } }
8081828384858687
//noinspection unchecked return (V) element.getObjectValue(); } } } catch (Throwable t) { throw new CacheException(t); } }
100101102103104105106107
V previous = get(key); Element element = new Element(key, value); cache.put(element); return previous; } catch (Throwable t) { throw new CacheException(t); } }
120121122123124125126127
try { V previous = get(key); cache.remove(key); return previous; } catch (Throwable t) { throw new CacheException(t); } }