mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	新增删除Hash中的某条数据
This commit is contained in:
		@@ -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));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 获得缓存的基本对象列表
 | 
			
		||||
     *
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user