Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
b7f37177
Commit
b7f37177
authored
Sep 30, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ehcache
parent
3042d77a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
core/src/main/java/com/wecloud/im/service/EhcacheService.java
+11
-9
No files found.
core/src/main/java/com/wecloud/im/service/EhcacheService.java
View file @
b7f37177
...
@@ -27,16 +27,18 @@ public class EhcacheService {
...
@@ -27,16 +27,18 @@ public class EhcacheService {
* @return
* @return
*/
*/
public
Boolean
getIsPush
(
String
key
)
{
public
Boolean
getIsPush
(
String
key
)
{
Cache
cache
=
cacheManager
.
getCache
(
"push"
);
try
{
String
value
=
cache
.
get
(
key
,
String
.
class
);
Cache
cache
=
cacheManager
.
getCache
(
"push"
);
log
.
info
(
"ehcache value {}"
,
value
);
String
value
=
cache
.
get
(
key
,
String
.
class
);
if
(
StringUtils
.
isNotBlank
(
value
))
{
if
(
StringUtils
.
isNotBlank
(
value
))
{
log
.
info
(
"not blank {}"
,
value
);
return
false
;
}
else
{
cache
.
put
(
key
,
"1"
);
return
true
;
}
}
catch
(
Exception
e
)
{
log
.
info
(
"取本地push缓存异常"
,
e
);
return
false
;
return
false
;
}
else
{
log
.
info
(
"blank"
);
cache
.
put
(
key
,
"1"
);
return
true
;
}
}
}
}
...
...
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