哪位大佬能帮我详细解读下
JedisPoolConfig config = new JedisPoolConfig();
config.setMaxTotal(paramInt("maxTotal",200));
config.setMaxIdle(paramInt("maxIdle",20));
this.pool = new JedisPool(config, param("ip"), paramInt("port", 6379));
哪位大佬能帮我详细解读下
JedisPoolConfig config = new JedisPoolConfig();
config.setMaxTotal(paramInt("maxTotal",200));
config.setMaxIdle(paramInt("maxIdle",20));
this.pool = new JedisPool(config, param("ip"), paramInt("port", 6379));
jedis 是java连接redis 的jar包,
用 JedisPoolConfig 是为了缓存连接,减少建立连接的次数