Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dict
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
陈文顺
dict
Commits
477ac5bc
Commit
477ac5bc
authored
Nov 27, 2018
by
陈文顺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bug] exists key
parent
c9164ce1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
demo-service/src/main/java/com/freemud/demo/util/RedisHashCache.java
+2
-2
No files found.
demo-service/src/main/java/com/freemud/demo/util/RedisHashCache.java
View file @
477ac5bc
...
...
@@ -65,7 +65,7 @@ public abstract class RedisHashCache<T> {
return
result
;
}
boolean
hasKey
=
redisTemplate
.
hasKey
(
key
);
boolean
hasKey
=
redisTemplate
.
hasKey
(
getRedisKey
(
key
)
);
if
(
hasKey
){
return
null
;
}
...
...
@@ -96,7 +96,7 @@ public abstract class RedisHashCache<T> {
}
public
void
delHashFile
(
Object
key
,
Object
filed
){
redisTemplate
.
boundHashOps
(
key
).
delete
(
filed
);
redisTemplate
.
boundHashOps
(
getRedisKey
(
key
)
).
delete
(
filed
);
}
...
...
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