mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java.
增加删除Hash中的数据
This commit is contained in:
		@@ -209,6 +209,18 @@ public class RedisCache
 | 
				
			|||||||
        return opsForHash.get(key, hKey);
 | 
					        return opsForHash.get(key, hKey);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * 删除Hash中的数据
 | 
				
			||||||
 | 
					     * 
 | 
				
			||||||
 | 
					     * @param key
 | 
				
			||||||
 | 
					     * @param mapkey
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public void delCacheMapValue(final String key, final String hkey)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        HashOperations hashOperations = redisTemplate.opsForHash();
 | 
				
			||||||
 | 
					        hashOperations.delete(key, hkey);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 获取多个Hash中的数据
 | 
					     * 获取多个Hash中的数据
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user