新增删除Hash中的某条数据

pull/541/MERGE
RuoYi 2022-08-07 19:31:04 +08:00
parent d0f399a66a
commit fb1bac2114
1 changed files with 12 additions and 0 deletions

View File

@ -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));
}
/**
*
*