yangys
2024-11-02 9a9b747962cc00801d8cce4137d1e123d556a79b
collect/src/main/java/com/qianwen/mdc/collect/utils/redis/RedisUtil.java
@@ -170,7 +170,7 @@
     * @param key 键
     * @return 对应的多个键值
     */
    public Map<Object, Object> hmget(String key) {
    public Map<?, ?> hmget(String key) {
        return redisTemplate.opsForHash().entries(key);
    }
@@ -180,7 +180,7 @@
     * @param map 对应多个键值
     * @return true 成功 false 失败
     */
    public boolean hmset(String key, Map<String,Object> map) {
    public boolean hmset(String key, Map<?,?> map) {
        try {
            redisTemplate.opsForHash().putAll(key, map);
            return true;
@@ -230,7 +230,7 @@
     * @param value 值
     * @return true 成功 false失败
     */
    public boolean hset(String key, Object item, Object value) {
    public <HK, HV> boolean hset(String key, HK item, HV value) {
        try {
            redisTemplate.opsForHash().put(key, item, value);
            return true;