@Override public void run() { try { Thread.sleep(1000); } catch (InterruptedException e) { } try { LOGGER.info("Flushing on memcached server {}", inetSocketAddress); memcachedClient.flushAll(inetSocketAddress); LOGGER.info("Memcached server {} flushed successfuly", inetSocketAddress); } catch (Exception e) { LOGGER.error("An error occured while flushing {}", inetSocketAddress.toString(), e); } } }).start();
public void evictAll() { try { client.flushAll(); } catch (Exception e) { throw new NucleusException("Exception evict entries from xmemcached", e); } }
public void evictAll() { try { client.flushAll(); } catch (Exception e) { throw new NucleusException("Exception evicting entries from xmemcached", e); } }
@Override public void flush() throws TimeoutException, CacheException { try { memcachedClient.flushAll(); } catch (MemcachedException | InterruptedException e) { throw new CacheException(e); } }
public void close() { try { client.flushAll(); client.shutdown(); } catch (Exception e) { NucleusLogger.CACHE.error("Exception caught shutting down cache", e); } }
public void close() { if (clearAtClose) { try { client.flushAll(); } catch (Exception e) { NucleusLogger.CACHE.error("Exception caught flushing cache", e); } } try { client.shutdown(); } catch (Exception e) { NucleusLogger.CACHE.error("Exception caught shutting down cache", e); } }