作者:依然2502927101 | 来源:互联网 | 2023-10-12 10:40
本文整理了Java中net.spy.memcached.MemcachedClientIF.flush()
方法的一些代码示例,展示了MemcachedClientIF.flush()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MemcachedClientIF.flush()
方法的具体详情如下:
包路径:net.spy.memcached.MemcachedClientIF
类名称:MemcachedClientIF
方法名:flush
MemcachedClientIF.flush介绍
暂无
代码示例
代码示例来源:origin: apache/kylin
public void clear() {
logger.warn("Clear Remote Cache!");
Future resultFuture = client.flush();
try {
boolean result = resultFuture.get();
logger.warn("Clear Remote Cache returned with result: " + result);
} catch (Exception e) {
logger.warn("Can't clear Remote Cache.", e);
}
}
代码示例来源:origin: apache/ignite
/**
* @throws Exception If failed.
*/
@Test
public void testFlush() throws Exception {
jcache().put("flushKey1", "flushVal1");
jcache().put("flushKey2", "flushVal2");
Assert.assertTrue(client.flush().get());
Assert.assertNull(jcache().get("flushKey1"));
Assert.assertNull(jcache().get("flushKey2"));
Assert.assertTrue(jcache().localSize() == 0);
}
代码示例来源:origin: spring-cloud/spring-cloud-aws
@Override
public void clear() {
this.memcachedClientIF.flush();
}
代码示例来源:origin: org.springframework.cloud/spring-cloud-aws-context
@Override
public void clear() {
this.memcachedClientIF.flush();
}
代码示例来源:origin: org.apache.kylin/kylin-cache
public void clear() {
logger.warn("Clear Remote Cache!");
Future resultFuture = client.flush();
try {
boolean result = resultFuture.get();
logger.warn("Clear Remote Cache returned with result: " + result);
} catch (Exception e) {
logger.warn("Can't clear Remote Cache.", e);
}
}
代码示例来源:origin: ragnor/simple-spring-memcached
@Override
public void flush() throws CacheException {
try {
memcachedClient.flush().get();
} catch (InterruptedException | ExecutionException e) {
throw new CacheException(e);
}
}
代码示例来源:origin: ragnor/simple-spring-memcached
@Override
public void flush() throws CacheException {
try {
memcachedClient.flush().get();
} catch (InterruptedException | ExecutionException e) {
throw new CacheException(e);
}
}