mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update RedisUtils 更新删除 hash 数据方法
This commit is contained in:
		@@ -259,6 +259,18 @@ public class RedisUtils {
 | 
			
		||||
        return rMap.get(hKey);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 删除Hash中的数据
 | 
			
		||||
     *
 | 
			
		||||
     * @param key  Redis键
 | 
			
		||||
     * @param hKey Hash键
 | 
			
		||||
     * @return Hash中的对象
 | 
			
		||||
     */
 | 
			
		||||
    public static <T> T delCacheMapValue(final String key, final String hKey) {
 | 
			
		||||
        RMap<String, T> rMap = client.getMap(key);
 | 
			
		||||
        return rMap.remove(hKey);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 获取多个Hash中的数据
 | 
			
		||||
     *
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user