Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
790aa0d2
Commit
790aa0d2
authored
Oct 26, 2021
by
雪丛
Committed by
Gitee
Oct 26, 2021
Browse files
update ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java.
增加删除Hash中的数据
parent
8a7dcf8a
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java
View file @
790aa0d2
...
@@ -209,6 +209,18 @@ public class RedisCache
...
@@ -209,6 +209,18 @@ public class RedisCache
return
opsForHash
.
get
(
key
,
hKey
);
return
opsForHash
.
get
(
key
,
hKey
);
}
}
/**
* 删除Hash中的数据
*
* @param key
* @param mapkey
*/
public
void
delCacheMapValue
(
final
String
key
,
final
String
hkey
)
{
HashOperations
hashOperations
=
redisTemplate
.
opsForHash
();
hashOperations
.
delete
(
key
,
hkey
);
}
/**
/**
* 获取多个Hash中的数据
* 获取多个Hash中的数据
*
*
...
...
Write
Preview
Supports
Markdown
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