memcached 通过 java_memcached_client api get 不到数据
时间: 2015-10-13来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
@红薯 第一次搭建memcached 服务 通过 java 客户端 与 memcached 交互 发现空闲一段时间后 无法获取缓存数据 再尝试几次又可以了 改了很多配置还是不行 很是头疼 不知道什么地方出现了问题 求大神帮忙指点一下定位下问题所在
附上我的配置
static {
// 服务器列表和其权重
String[] servers = { " 172.24.176.128 :11211" };
//Integer[] weights = { 3 };

// 获取socke连接池的实例对象
SockIOPool pool = SockIOPool.getInstance("SP");

// 设置服务器信息
pool.setServers( servers );
// pool.setWeights( weights );

// 设置初始连接数、最小和最大连接数以及最大处理时间
pool.setInitConn( 5 );
pool.setMinConn( 5 );
pool.setMaxConn( 250 );
pool.setMaxIdle( 30*24*60*60 );

// 初始化连接池
pool.initialize();

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行