热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

net.spy.memcached.MemcachedClientIF.flush()方法的使用及代码示例

本文整理了Java中net.spy.memcached.MemcachedClientIF.flush()方法的一些代码示例,展示了MemcachedCli

本文整理了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);
}
}

推荐阅读
author-avatar
依然2502927101
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有