@Override public boolean contains(Object key) { try { return mapCache.containsKey(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public Object get(Object key) throws CacheException { try { return mapCache.get(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void evictAll() throws CacheException { try { mapCache.clear(); } catch (Exception e) { throw new CacheException(e); } }
@Override public Object get(SessionImplementor session, Object key) throws CacheException { try { return mapCache.get(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void put(Object key, Object value) throws CacheException { try { mapCache.fastPut(key, value, ttl, TimeUnit.MILLISECONDS, maxIdle, TimeUnit.MILLISECONDS); } catch (Exception e) { throw new CacheException(e); } }
@Override public Object get(SharedSessionContractImplementor session, Object key) throws CacheException { try { return mapCache.get(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void evict(Object key) throws CacheException { try { mapCache.fastRemove(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void destroy() throws CacheException { try { mapCache.destroy(); } catch (Exception e) { throw new CacheException(e); } }
@Override public void destroy() throws CacheException { try { mapCache.destroy(); } catch (Exception e) { throw new CacheException(e); } }
@Override public void put(SessionImplementor session, Object key, Object value) throws CacheException { try { mapCache.fastPut(key, value, ttl, TimeUnit.MILLISECONDS, maxIdle, TimeUnit.MILLISECONDS); } catch (Exception e) { throw new CacheException(e); } }
@Override public void evictAll() throws CacheException { try { mapCache.clear(); } catch (Exception e) { throw new CacheException(e); } }
@Override public boolean contains(Object key) { try { return mapCache.containsKey(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void evict(Object key) throws CacheException { try { mapCache.fastRemove(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public boolean contains(Object key) { try { return mapCache.containsKey(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void evict(Object key) throws CacheException { try { mapCache.fastRemove(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void evictAll() throws CacheException { try { mapCache.clear(); } catch (Exception e) { throw new CacheException(e); } }
private Config loadConfig(String configPath) { try { return Config.fromJSON(new File(configPath)); } catch (IOException e) { // trying next format try { return Config.fromYAML(new File(configPath)); } catch (IOException e1) { throw new CacheException("Can't parse default yaml config", e1); } } }
private Config loadConfig(String configPath) { try { return Config.fromJSON(new File(configPath)); } catch (IOException e) { // trying next format try { return Config.fromYAML(new File(configPath)); } catch (IOException e1) { throw new CacheException("Can't parse default yaml config", e1); } } }
private Config loadConfig(String configPath) { try { return Config.fromJSON(new File(configPath)); } catch (IOException e) { // trying next format try { return Config.fromYAML(new File(configPath)); } catch (IOException e1) { throw new CacheException("Can't parse default yaml config", e1); } } }
private Config loadConfig(String configPath) { try { return Config.fromJSON(new File(configPath)); } catch (IOException e) { // trying next format try { return Config.fromYAML(new File(configPath)); } catch (IOException e1) { throw new CacheException("Can't parse default yaml config", e1); } } }