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
fb1bac21
Commit
fb1bac21
authored
Aug 07, 2022
by
RuoYi
Browse files
新增删除Hash中的某条数据
parent
d0f399a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java
View file @
fb1bac21
...
...
@@ -255,6 +255,18 @@ public class RedisCache
return
redisTemplate
.
opsForHash
().
multiGet
(
key
,
hKeys
);
}
/**
* 删除Hash中的某条数据
*
* @param key Redis键
* @param hKey Hash键
* @return 是否成功
*/
public
boolean
deleteCacheMapValue
(
final
String
key
,
final
String
hKey
)
{
return
Boolean
.
TRUE
.
equals
(
redisTemplate
.
opsForHash
().
delete
(
key
,
hKey
));
}
/**
* 获得缓存的基本对象列表
*
...
...
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