From ea9fe439375979ccce97798261ae9a5e275c46f0 Mon Sep 17 00:00:00 2001 From: "jay1991115@126.com" Date: Wed, 5 Dec 2018 16:25:02 +0800 Subject: [PATCH] config redis --- src/main/java/com/geekq/miaosha/redis/RedisPoolFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/geekq/miaosha/redis/RedisPoolFactory.java b/src/main/java/com/geekq/miaosha/redis/RedisPoolFactory.java index e1bc05a5..582be546 100644 --- a/src/main/java/com/geekq/miaosha/redis/RedisPoolFactory.java +++ b/src/main/java/com/geekq/miaosha/redis/RedisPoolFactory.java @@ -20,7 +20,7 @@ public JedisPool JedisPoolFactory() { poolConfig.setMaxTotal(redisConfig.getPoolMaxTotal()); poolConfig.setMaxWaitMillis(redisConfig.getPoolMaxWait() * 1000); JedisPool jp = new JedisPool(poolConfig, redisConfig.getHost(), redisConfig.getPort(), - redisConfig.getTimeout()*1000, redisConfig.getPassword(), 0); + redisConfig.getTimeout()*1000, redisConfig.getPassword(), 8); return jp; }