新增删除Hash中的某条数据

pull/225/head
runphp 2 years ago committed by Gitee
parent b51c127eb7
commit 4ae26c2f86
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -243,6 +243,18 @@ public class RedisService
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));
}
/**
*
*

Loading…
Cancel
Save