5,jedis连接池
来源:互联网 发布:跟淘宝联盟类似的网站 编辑:程序博客网 时间:2024/05/22 06:04
JedisPoolConfig conf = new JedisPoolConfig(); conf.setMaxWaitMillis(3000); conf.setFairness(false); conf.setMaxIdle(5); conf.setMaxTotal(10); JedisPool jedisPool = new JedisPool(conf, "hadoop1", 6379, 100, "xxx"); int numActive = jedisPool.getNumActive(); System.out.println("numActive :" + numActive); Jedis jedis = jedisPool.getResource(); jedis.select(0); String value = jedis.get("k1"); System.out.println(value); jedisPool.close();
0 0
- 5,jedis连接池
- Jedis与Jedis连接池
- REDIS学习(5)jedis 和 jedis连接池
- Jedis 连接池
- Jedis连接池配置
- jedis连接池
- jedis连接池
- Jedis 连接池
- Jedis连接池配置
- jedis连接池配置
- Jedis 连接池实例
- jedis 连接池
- Jedis连接池实例
- Jedis连接池
- jedis 连接池的使用
- Jedis连接池的使用
- Jedis连接池的使用
- Jedis连接池的使用
- 使用DOM4J方式生成XML文件的步骤如下:
- Android蓝牙事件
- 排序别名使用中文出错
- Hessian学习
- 生死门
- 5,jedis连接池
- Ios支付宝开发流程与常见的问题
- 融资规划
- show processList 命令内容
- servlet中将接收的参数转成Json
- Tree-----宽度优先遍历2(103. Binary Tree Zigzag Level Order Traversal)
- 二叉树创建
- python发送邮件实现
- 运营策略