mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	add 增加 RedisUtils 检查缓存对象是否存在方法
This commit is contained in:
		@@ -209,6 +209,15 @@ public class RedisUtils {
 | 
			
		||||
        batch.execute();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 检查缓存对象是否存在
 | 
			
		||||
     *
 | 
			
		||||
     * @param key 缓存的键值
 | 
			
		||||
     */
 | 
			
		||||
    public static boolean isExistsObject(final String key) {
 | 
			
		||||
        return CLIENT.getBucket(key).isExists();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 缓存List数据
 | 
			
		||||
     *
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user