Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gechengyang
nouiWithSpringMVC
Commits
fc442dfa
Commit
fc442dfa
authored
Sep 25, 2020
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉redis连接工具无用日志
parent
e2c09651
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
RedisUtil.java
src/main/java/org/sss/presentation/noui/util/RedisUtil.java
+4
-6
No files found.
src/main/java/org/sss/presentation/noui/util/RedisUtil.java
View file @
fc442dfa
...
...
@@ -2,7 +2,6 @@ package org.sss.presentation.noui.util;
import
log.Log
;
import
log.LogFactory
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.util.ObjectUtils
;
import
org.sss.presentation.noui.redis.RedisBalanceProperties
;
...
...
@@ -14,7 +13,6 @@ import java.util.Map;
import
java.util.Set
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
/**
* Redis连接池工具类
...
...
@@ -113,7 +111,7 @@ public class RedisUtil {
//使用setex实现,减一次连接
masterNode
.
opsForValue
().
set
(
key
,
value
,
sessionTimeOut
,
TimeUnit
.
SECONDS
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
e
.
getMessage
()
);
checkRedisNodeAvailable
();
}
}
...
...
@@ -122,7 +120,7 @@ public class RedisUtil {
try
{
return
masterNode
.
opsForValue
().
get
(
key
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
e
.
getMessage
()
);
checkRedisNodeAvailable
();
}
return
null
;
...
...
@@ -132,7 +130,7 @@ public class RedisUtil {
try
{
return
masterNode
.
delete
(
key
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
e
.
getMessage
()
);
checkRedisNodeAvailable
();
}
return
false
;
...
...
@@ -142,7 +140,7 @@ public class RedisUtil {
try
{
return
masterNode
.
keys
(
key
+
"*"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
e
.
getMessage
()
);
checkRedisNodeAvailable
();
}
return
new
HashSet
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment