From 6ae24b9dd402891a2e98f375b54318a0282127a8 Mon Sep 17 00:00:00 2001 From: qi_liang Date: Mon, 10 Jun 2019 11:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dredis=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/dev/redis.properties | 6 +++--- src/main/resources/pro/redis.properties | 4 ++-- src/main/resources/spring/spring-redis.xml | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/resources/dev/redis.properties b/src/main/resources/dev/redis.properties index 6e9da90..80be888 100644 --- a/src/main/resources/dev/redis.properties +++ b/src/main/resources/dev/redis.properties @@ -3,8 +3,8 @@ redis.port=6379 redis.pass= redis.timeout=-1 -redis.maxTotal=10 -redis.maxIdle=5 +redis.maxTotal=15 +redis.maxIdle=10 redis.numTestsPerEvictionRun=1024 redis.timeBetweenEvictionRunsMillis=30000 redis.minEvictableIdleTimeMillis=1800000 @@ -12,5 +12,5 @@ redis.softMinEvictableIdleTimeMillis=10000 redis.maxWaitMillis=1500 redis.testWhileIdle=true redis.blockWhenExhausted=false -redis.minIdle=8 +redis.minIdle=5 redis.testOnBorrow=true \ No newline at end of file diff --git a/src/main/resources/pro/redis.properties b/src/main/resources/pro/redis.properties index bc1f169..d8a745a 100644 --- a/src/main/resources/pro/redis.properties +++ b/src/main/resources/pro/redis.properties @@ -3,7 +3,7 @@ redis.port=6379 redis.pass= redis.timeout=-1 -redis.maxTotal=30 +redis.maxTotal=20 redis.maxIdle=10 redis.numTestsPerEvictionRun=1024 redis.timeBetweenEvictionRunsMillis=30000 @@ -12,5 +12,5 @@ redis.softMinEvictableIdleTimeMillis=10000 redis.maxWaitMillis=1500 redis.testWhileIdle=true redis.blockWhenExhausted=false -redis.minIdle=8 +redis.minIdle=5 redis.testOnBorrow=true \ No newline at end of file diff --git a/src/main/resources/spring/spring-redis.xml b/src/main/resources/spring/spring-redis.xml index 020c3ff..d7df648 100644 --- a/src/main/resources/spring/spring-redis.xml +++ b/src/main/resources/spring/spring-redis.xml @@ -38,6 +38,8 @@ + +