diff --git a/src/main/java/cn/axzo/pokonyan/config/redis/RedisClient.java b/src/main/java/cn/axzo/pokonyan/config/redis/RedisClient.java index d90a7b3..9cc7c0d 100644 --- a/src/main/java/cn/axzo/pokonyan/config/redis/RedisClient.java +++ b/src/main/java/cn/axzo/pokonyan/config/redis/RedisClient.java @@ -72,10 +72,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/7 17:15:02 */ public static Boolean delete(String key) { - log.info("delete(...) => key= {}", key); + log.debug("delete(...) => key= {}", key); // 返回值只可能为true/false, 不可能为null Boolean result = stringRedisTemplate.delete(key); - log.info("delete(...) => result= {}", result); + log.debug("delete(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -95,9 +95,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/7 17:48:04 */ public static Long delete(Collection keys) { - log.info("delete(...) => keys= {}", keys); + log.debug("delete(...) => keys= {}", keys); Long count = stringRedisTemplate.delete(keys); - log.info("delete(...) => count= {}", count); + log.debug("delete(...) => count= {}", count); if (count == null) { throw new RedisOpsResultIsNullException(); } @@ -117,9 +117,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 11:34:13 */ public static byte[] dump(String key) { - log.info("dump(...) =>key= {}", key); + log.debug("dump(...) =>key= {}", key); byte[] result = stringRedisTemplate.dump(key); - log.info("dump(...) => result= {}", result); + log.debug("dump(...) => result= {}", result); return result; } @@ -165,7 +165,7 @@ public class RedisClient implements InitializingBean { */ public static void restore(String key, byte[] value, Long timeout, TimeUnit unit, Boolean replace) { - log.info("restore(...) => key= {}, value= {}, timeout= {}, unit= {}, replace= {}", + log.debug("restore(...) => key= {}, value= {}, timeout= {}, unit= {}, replace= {}", key, value, timeout, unit, replace); stringRedisTemplate.restore(key, value, timeout, unit, replace); } @@ -178,9 +178,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 12:16:46 */ public static Boolean hasKey(String key) { - log.info("hasKey(...) => key= {}", key); + log.debug("hasKey(...) => key= {}", key); Boolean result = stringRedisTemplate.hasKey(key); - log.info("hasKey(...) => result= {}", result); + log.debug("hasKey(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -203,9 +203,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 12:18:58 */ public static Boolean expire(String key, Long timeout, TimeUnit unit) { - log.info("expire(...) => key= {}, timeout= {}, unit= {}", key, timeout, unit); + log.debug("expire(...) => key= {}, timeout= {}, unit= {}", key, timeout, unit); Boolean result = stringRedisTemplate.expire(key, timeout, unit); - log.info("expire(...) => result is= {}", result); + log.debug("expire(...) => result is= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -227,9 +227,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 12:19:29 */ public static Boolean expireAt(String key, Date date) { - log.info("expireAt(...) => key= {}, date= {}", key, date); + log.debug("expireAt(...) => key= {}, date= {}", key, date); Boolean result = stringRedisTemplate.expireAt(key, date); - log.info("expireAt(...) => result is= {}", result); + log.debug("expireAt(...) => result is= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -251,9 +251,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 12:38:38 */ public static Set keys(String pattern) { - log.info("keys(...) => pattern= {}", pattern); + log.debug("keys(...) => pattern= {}", pattern); Set keys = stringRedisTemplate.keys(pattern); - log.info("keys(...) => keys= {}", keys); + log.debug("keys(...) => keys= {}", keys); return keys; } @@ -273,9 +273,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 13:01:00 */ public static Boolean move(String key, int dbIndex) { - log.info("move(...) => key = {}, dbIndex= {}", key, dbIndex); + log.debug("move(...) => key = {}, dbIndex= {}", key, dbIndex); Boolean result = stringRedisTemplate.move(key, dbIndex); - log.info("move(...) =>result= {}", result); + log.debug("move(...) =>result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -294,9 +294,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 13:10:02 */ public static Boolean persist(String key) { - log.info("persist(...) => key= {}", key); + log.debug("persist(...) => key= {}", key); Boolean result = stringRedisTemplate.persist(key); - log.info("persist(...) => result= {}", result); + log.debug("persist(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -333,9 +333,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 13:17:35 */ public static Long getExpire(String key, TimeUnit unit) { - log.info("getExpire(...) =>key= {}, unit is= {}", key, unit); + log.debug("getExpire(...) =>key= {}, unit is= {}", key, unit); Long result = stringRedisTemplate.getExpire(key, unit); - log.info("getExpire(...) => result= {}", result); + log.debug("getExpire(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -352,7 +352,7 @@ public class RedisClient implements InitializingBean { */ public static String randomKey() { String result = stringRedisTemplate.randomKey(); - log.info("randomKey(...) => result is= {}", result); + log.debug("randomKey(...) => result is= {}", result); return result; } @@ -375,7 +375,7 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 14:14:17 */ public static void rename(String oldKey, String newKey) { - log.info("rename(...) => oldKey= {}, newKey= {}", oldKey, newKey); + log.debug("rename(...) => oldKey= {}, newKey= {}", oldKey, newKey); stringRedisTemplate.rename(oldKey, newKey); } @@ -394,9 +394,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 14:14:17 */ public static Boolean renameIfAbsent(String oldKey, String newKey) { - log.info("renameIfAbsent(...) => oldKey= {}, newKey= {}", oldKey, newKey); + log.debug("renameIfAbsent(...) => oldKey= {}, newKey= {}", oldKey, newKey); Boolean result = stringRedisTemplate.renameIfAbsent(oldKey, newKey); - log.info("renameIfAbsent(...) => result= {}", result); + log.debug("renameIfAbsent(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -414,9 +414,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 14:40:16 */ public static DataType type(String key) { - log.info("type(...) => key= {}", key); + log.debug("type(...) => key= {}", key); DataType result = stringRedisTemplate.type(key); - log.info("type(...) => result= {}", result); + log.debug("type(...) => result= {}", result); return result; } } @@ -444,7 +444,7 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 15:40:59 */ public static void set(String key, String value) { - log.info("set(...) => key= {}, value= {}", key, value); + log.debug("set(...) => key= {}, value= {}", key, value); stringRedisTemplate.opsForValue().set(key, value); } @@ -473,9 +473,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 16:30:37 */ public static Boolean setBit(String key, Long offset, Boolean value) { - log.info("setBit(...) => key= {}, offset= {}, value= {}", key, offset, value); + log.debug("setBit(...) => key= {}, offset= {}, value= {}", key, offset, value); Boolean result = stringRedisTemplate.opsForValue().setBit(key, offset, value); - log.info("setBit(...) => result= {}", result); + log.debug("setBit(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -498,7 +498,7 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 15:40:59 */ public static void setEx(String key, String value, Long timeout, TimeUnit unit) { - log.info("setEx(...) => key= {}, value= {}, timeout= {}, unit= {}", + log.debug("setEx(...) => key= {}, value= {}, timeout= {}, unit= {}", key, value, timeout, unit); stringRedisTemplate.opsForValue().set(key, value, timeout, unit); } @@ -516,9 +516,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 16:51:36 */ public static Boolean setIfAbsent(String key, String value) { - log.info("setIfAbsent(...) => key= {}, value= {}", key, value); + log.debug("setIfAbsent(...) => key= {}, value= {}", key, value); Boolean result = stringRedisTemplate.opsForValue().setIfAbsent(key, value); - log.info("setIfAbsent(...) => result= {}", result); + log.debug("setIfAbsent(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -542,10 +542,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 16:51:36 */ public static Boolean setIfAbsent(String key, String value, Long timeout, TimeUnit unit) { - log.info("setIfAbsent(...) => key= {}, value= {}, key= {}, value= {}", key, value, timeout, + log.debug("setIfAbsent(...) => key= {}, value= {}, key= {}, value= {}", key, value, timeout, unit); Boolean result = stringRedisTemplate.opsForValue().setIfAbsent(key, value, timeout, unit); - log.info("setIfAbsent(...) => result= {}", result); + log.debug("setIfAbsent(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -576,7 +576,7 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 17:04:31 */ public static void setRange(String key, String replaceValue, Long offset) { - log.info("setRange(...) => key= {}, replaceValue= {}, offset= {}", key, replaceValue, offset); + log.debug("setRange(...) => key= {}, replaceValue= {}, offset= {}", key, replaceValue, offset); stringRedisTemplate.opsForValue().set(key, replaceValue, offset); } @@ -592,9 +592,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 17:14:30 */ public static Long size(String key) { - log.info("size(...) => key= {}", key); + log.debug("size(...) => key= {}", key); Long result = stringRedisTemplate.opsForValue().size(key); - log.info("size(...) => result= {}", result); + log.debug("size(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -611,7 +611,7 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 17:21:19 */ public static void multiSet(Map maps) { - log.info("multiSet(...) => maps= {}", maps); + log.debug("multiSet(...) => maps= {}", maps); stringRedisTemplate.opsForValue().multiSet(maps); } @@ -634,9 +634,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 17:21:19 */ public static Boolean multiSetIfAbsent(Map maps) { - log.info("multiSetIfAbsent(...) => maps= {}", maps); + log.debug("multiSetIfAbsent(...) => maps= {}", maps); Boolean result = stringRedisTemplate.opsForValue().multiSetIfAbsent(maps); - log.info("multiSetIfAbsent(...) => result= {}", result); + log.debug("multiSetIfAbsent(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -659,9 +659,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 17:45:51 */ public static Long incrBy(String key, Long increment) { - log.info("incrBy(...) => key= {}, increment= {}", key, increment); + log.debug("incrBy(...) => key= {}, increment= {}", key, increment); Long result = stringRedisTemplate.opsForValue().increment(key, increment); - log.info("incrBy(...) => result= {}", result); + log.debug("incrBy(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -688,9 +688,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 17:45:51 */ public static Double incrByFloat(String key, Double increment) { - log.info("incrByFloat(...) => key= {}, increment= {}", key, increment); + log.debug("incrByFloat(...) => key= {}, increment= {}", key, increment); Double result = stringRedisTemplate.opsForValue().increment(key, increment); - log.info("incrByFloat(...) => result= {}", result); + log.debug("incrByFloat(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -710,9 +710,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 17:59:21 */ public static Integer append(String key, String value) { - log.info("append(...) => key= {}, value= {}", key, value); + log.debug("append(...) => key= {}, value= {}", key, value); Integer result = stringRedisTemplate.opsForValue().append(key, value); - log.info("append(...) => result= {}", result); + log.debug("append(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -730,9 +730,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 16:27:41 */ public static String get(String key) { - log.info("get(...) => key= {}", key); + log.debug("get(...) => key= {}", key); String result = stringRedisTemplate.opsForValue().get(key); - log.info("get(...) => result= {} ", result); + log.debug("get(...) => result= {} ", result); return result; } @@ -752,9 +752,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 18:08:45 */ public static String getRange(String key, Long start, Long end) { - log.info("getRange(...) => kry= {}", key); + log.debug("getRange(...) => kry= {}", key); String result = stringRedisTemplate.opsForValue().get(key, start, end); - log.info("getRange(...) => result= {} ", result); + log.debug("getRange(...) => result= {} ", result); return result; } @@ -771,9 +771,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 18:14:24 */ public static String getAndSet(String key, String newValue) { - log.info("getAndSet(...) => key= {}, value= {}", key, newValue); + log.debug("getAndSet(...) => key= {}, value= {}", key, newValue); String oldValue = stringRedisTemplate.opsForValue().getAndSet(key, newValue); - log.info("getAndSet(...) => oldValue= {}", oldValue); + log.debug("getAndSet(...) => oldValue= {}", oldValue); return oldValue; } @@ -795,9 +795,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 18:21:10 */ public static Boolean getBit(String key, Long offset) { - log.info("getBit(...) => key= {}, offset= {}", key, offset); + log.debug("getBit(...) => key= {}, offset= {}", key, offset); Boolean result = stringRedisTemplate.opsForValue().getBit(key, offset); - log.info("getBit(...) => result= {}", result); + log.debug("getBit(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -815,9 +815,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 18:26:33 */ public static List multiGet(Collection keys) { - log.info("multiGet(...) => keys= {}", keys); + log.debug("multiGet(...) => keys= {}", keys); List result = stringRedisTemplate.opsForValue().multiGet(keys); - log.info("multiGet(...) => result= {}", result); + log.debug("multiGet(...) => result= {}", result); return result; } } @@ -850,7 +850,7 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 23:49:52 */ public static void hPut(String key, String entryKey, String entryValue) { - log.info("hPut(...) => key= {}, entryKey= {}, entryValue= {}", key, entryKey, entryValue); + log.debug("hPut(...) => key= {}, entryKey= {}, entryValue= {}", key, entryKey, entryValue); stringRedisTemplate.opsForHash().put(key, entryKey, entryValue); } @@ -867,7 +867,7 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 23:49:52 */ public static void hPutAll(String key, Map maps) { - log.info("hPutAll(...) => key= {}, maps= {}", key, maps); + log.debug("hPutAll(...) => key= {}, maps= {}", key, maps); stringRedisTemplate.opsForHash().putAll(key, maps); } @@ -886,10 +886,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/8 23:49:52 */ public static Boolean hPutIfAbsent(String key, String entryKey, String entryValue) { - log.info("hPutIfAbsent(...) => key= {}, entryKey= {}, entryValue= {}", + log.debug("hPutIfAbsent(...) => key= {}, entryKey= {}, entryValue= {}", key, entryKey, entryValue); Boolean result = stringRedisTemplate.opsForHash().putIfAbsent(key, entryKey, entryValue); - log.info("hPutIfAbsent(...) => result= {}", result); + log.debug("hPutIfAbsent(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -911,9 +911,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 9:09:30 */ public static Object hGet(String key, String entryKey) { - log.info("hGet(...) => key= {}, entryKey= {}", key, entryKey); + log.debug("hGet(...) => key= {}, entryKey= {}", key, entryKey); Object entryValue = stringRedisTemplate.opsForHash().get(key, entryKey); - log.info("hGet(...) => entryValue= {}", entryValue); + log.debug("hGet(...) => entryValue= {}", entryValue); return entryValue; } @@ -929,9 +929,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 9:09:30 */ public static Map hGetAll(String key) { - log.info("hGetAll(...) => key= {}", key); + log.debug("hGetAll(...) => key= {}", key); Map result = stringRedisTemplate.opsForHash().entries(key); - log.info("hGetAll(...) => result= {}", result); + log.debug("hGetAll(...) => result= {}", result); return result; } @@ -950,9 +950,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 9:25:38 */ public static List hMultiGet(String key, Collection entryKeys) { - log.info("hMultiGet(...) => key= {}, entryKeys= {}", key, entryKeys); + log.debug("hMultiGet(...) => key= {}, entryKeys= {}", key, entryKeys); List entryValues = stringRedisTemplate.opsForHash().multiGet(key, entryKeys); - log.info("hMultiGet(...) => entryValues= {}", entryValues); + log.debug("hMultiGet(...) => entryValues= {}", entryValues); return entryValues; } @@ -977,9 +977,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 9:37:47 */ public static Long hDelete(String key, Object... entryKeys) { - log.info("hDelete(...) => key= {}, entryKeys= {}", key, entryKeys); + log.debug("hDelete(...) => key= {}, entryKeys= {}", key, entryKeys); Long count = stringRedisTemplate.opsForHash().delete(key, entryKeys); - log.info("hDelete(...) => count= {}", count); + log.debug("hDelete(...) => count= {}", count); if (count == null) { throw new RedisOpsResultIsNullException(); } @@ -1001,9 +1001,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 9:51:55 */ public static Boolean hExists(String key, String entryKey) { - log.info("hDelete(...) => key= {}, entryKeys= {}", key, entryKey); + log.debug("hDelete(...) => key= {}, entryKeys= {}", key, entryKey); Boolean exist = stringRedisTemplate.opsForHash().hasKey(key, entryKey); - log.info("hDelete(...) => exist= {}", exist); + log.debug("hDelete(...) => exist= {}", exist); return exist; } @@ -1027,10 +1027,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 10:09:28 */ public static Long hIncrBy(String key, Object entryKey, Long increment) { - log.info("hIncrBy(...) => key= {}, entryKey= {}, increment= {}", + log.debug("hIncrBy(...) => key= {}, entryKey= {}, increment= {}", key, entryKey, increment); Long result = stringRedisTemplate.opsForHash().increment(key, entryKey, increment); - log.info("hIncrBy(...) => result= {}", result); + log.debug("hIncrBy(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -1059,10 +1059,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 10:09:28 */ public static Double hIncrByFloat(String key, Object entryKey, Double increment) { - log.info("hIncrByFloat(...) => key= {}, entryKey= {}, increment= {}", + log.debug("hIncrByFloat(...) => key= {}, entryKey= {}, increment= {}", key, entryKey, increment); Double result = stringRedisTemplate.opsForHash().increment(key, entryKey, increment); - log.info("hIncrByFloat(...) => result= {}", result); + log.debug("hIncrByFloat(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -1081,9 +1081,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 10:30:13 */ public static Set hKeys(String key) { - log.info("hKeys(...) => key= {}", key); + log.debug("hKeys(...) => key= {}", key); Set entryKeys = stringRedisTemplate.opsForHash().keys(key); - log.info("hKeys(...) => entryKeys= {}", entryKeys); + log.debug("hKeys(...) => entryKeys= {}", entryKeys); return entryKeys; } @@ -1099,9 +1099,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 10:30:13 */ public static List hValues(String key) { - log.info("hValues(...) => key= {}", key); + log.debug("hValues(...) => key= {}", key); List entryValues = stringRedisTemplate.opsForHash().values(key); - log.info("hValues(...) => entryValues= {}", entryValues); + log.debug("hValues(...) => entryValues= {}", entryValues); return entryValues; } @@ -1117,9 +1117,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 10:41:01 */ public static Long hSize(String key) { - log.info("hSize(...) => key= {}", key); + log.debug("hSize(...) => key= {}", key); Long count = stringRedisTemplate.opsForHash().size(key); - log.info("hSize(...) => count= {}", count); + log.debug("hSize(...) => count= {}", count); if (count == null) { throw new RedisOpsResultIsNullException(); } @@ -1149,9 +1149,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 10:49:27 */ public static Cursor> hScan(String key, ScanOptions options) { - log.info("hScan(...) => key= {}, options= {}", key, JSON.toJSONString(options)); + log.debug("hScan(...) => key= {}, options= {}", key, JSON.toJSONString(options)); Cursor> cursor = stringRedisTemplate.opsForHash().scan(key, options); - log.info("hScan(...) => cursor= {}", JSON.toJSONString(cursor)); + log.debug("hScan(...) => cursor= {}", JSON.toJSONString(cursor)); return cursor; } } @@ -1189,9 +1189,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 11:56:05 */ public static Long lLeftPush(String key, String item) { - log.info("lLeftPush(...) => key= {}, item= {}", key, item); + log.debug("lLeftPush(...) => key= {}, item= {}", key, item); Long size = stringRedisTemplate.opsForList().leftPush(key, item); - log.info("lLeftPush(...) => size= {}", size); + log.debug("lLeftPush(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1213,9 +1213,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 11:56:05 */ public static Long lLeftPushAll(String key, String... items) { - log.info("lLeftPushAll(...) => key= {}, items= {}", key, items); + log.debug("lLeftPushAll(...) => key= {}, items= {}", key, items); Long size = stringRedisTemplate.opsForList().leftPushAll(key, items); - log.info("lLeftPushAll(...) => size= {}", size); + log.debug("lLeftPushAll(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1237,9 +1237,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 11:56:05 */ public static Long lLeftPushAll(String key, Collection items) { - log.info("lLeftPushAll(...) => key= {}, items= {}", key, items); + log.debug("lLeftPushAll(...) => key= {}, items= {}", key, items); Long size = stringRedisTemplate.opsForList().leftPushAll(key, items); - log.info("lLeftPushAll(...) => size= {}", size); + log.debug("lLeftPushAll(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1259,9 +1259,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 13:40:08 */ public static Long lLeftPushIfPresent(String key, String item) { - log.info("lLeftPushIfPresent(...) => key= {}, item= {}", key, item); + log.debug("lLeftPushIfPresent(...) => key= {}, item= {}", key, item); Long size = stringRedisTemplate.opsForList().leftPushIfPresent(key, item); - log.info("lLeftPushIfPresent(...) => size= {}", size); + log.debug("lLeftPushIfPresent(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1283,9 +1283,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 11:56:05 */ public static Long lLeftPush(String key, String pivot, String item) { - log.info("lLeftPush(...) => key= {}, pivot= {}, item= {}", key, pivot, item); + log.debug("lLeftPush(...) => key= {}, pivot= {}, item= {}", key, pivot, item); Long size = stringRedisTemplate.opsForList().leftPush(key, pivot, item); - log.info("lLeftPush(...) => size= {}", size); + log.debug("lLeftPush(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1296,9 +1296,9 @@ public class RedisClient implements InitializingBean { * 与{@link ListOps#lLeftPush(String, String)}类比即可, 不过是从list右侧推入元素 */ public static Long lRightPush(String key, String item) { - log.info("lRightPush(...) => key= {}, item= {}", key, item); + log.debug("lRightPush(...) => key= {}, item= {}", key, item); Long size = stringRedisTemplate.opsForList().rightPush(key, item); - log.info("lRightPush(...) => size= {}", size); + log.debug("lRightPush(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1309,9 +1309,9 @@ public class RedisClient implements InitializingBean { * 与{@link ListOps#lLeftPushAll(String, String...)}类比即可, 不过是从list右侧推入元素 */ public static Long lRightPushAll(String key, String... items) { - log.info("lRightPushAll(...) => key= {}, items= {}", key, items); + log.debug("lRightPushAll(...) => key= {}, items= {}", key, items); Long size = stringRedisTemplate.opsForList().rightPushAll(key, items); - log.info("lRightPushAll(...) => size= {}", size); + log.debug("lRightPushAll(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1322,9 +1322,9 @@ public class RedisClient implements InitializingBean { * 与{@link ListOps#lLeftPushAll(String, Collection)}类比即可, 不过是从list右侧推入元素 */ public static Long lRightPushAll(String key, Collection items) { - log.info("lRightPushAll(...) => key= {}, items= {}", key, items); + log.debug("lRightPushAll(...) => key= {}, items= {}", key, items); Long size = stringRedisTemplate.opsForList().rightPushAll(key, items); - log.info("lRightPushAll(...) => size= {}", size); + log.debug("lRightPushAll(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1335,9 +1335,9 @@ public class RedisClient implements InitializingBean { * 与{@link ListOps#lLeftPushIfPresent(String, String)}类比即可, 不过是从list右侧推入元素 */ public static Long lRightPushIfPresent(String key, String item) { - log.info("lRightPushIfPresent(...) => key= {}, item= {}", key, item); + log.debug("lRightPushIfPresent(...) => key= {}, item= {}", key, item); Long size = stringRedisTemplate.opsForList().rightPushIfPresent(key, item); - log.info("lRightPushIfPresent(...) => size= {}", size); + log.debug("lRightPushIfPresent(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1348,9 +1348,9 @@ public class RedisClient implements InitializingBean { * 与{@link ListOps#lLeftPush(String, String, String)}类比即可, 不过是从list右侧推入元素 */ public static Long lRightPush(String key, String pivot, String item) { - log.info("lLeftPush(...) => key= {}, pivot= {}, item= {}", key, pivot, item); + log.debug("lLeftPush(...) => key= {}, pivot= {}, item= {}", key, pivot, item); Long size = stringRedisTemplate.opsForList().rightPush(key, pivot, item); - log.info("lLeftPush(...) => size= {}", size); + log.debug("lLeftPush(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1370,9 +1370,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 14:33:56 */ public static String lLeftPop(String key) { - log.info("lLeftPop(...) => key= {}", key); + log.debug("lLeftPop(...) => key= {}", key); String item = stringRedisTemplate.opsForList().leftPop(key); - log.info("lLeftPop(...) => item= {}", item); + log.debug("lLeftPop(...) => item= {}", item); return item; } @@ -1396,9 +1396,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 14:33:56 */ public static String lLeftPop(String key, Long timeout, TimeUnit unit) { - log.info("lLeftPop(...) => key= {}, timeout= {}, unit= {}", key, timeout, unit); + log.debug("lLeftPop(...) => key= {}, timeout= {}, unit= {}", key, timeout, unit); String item = stringRedisTemplate.opsForList().leftPop(key, timeout, unit); - log.info("lLeftPop(...) => item= {}", item); + log.debug("lLeftPop(...) => item= {}", item); return item; } @@ -1406,9 +1406,9 @@ public class RedisClient implements InitializingBean { * 与{@link ListOps#lLeftPop(String)}类比即可, 不过是从list右侧移出元素 */ public static String lRightPop(String key) { - log.info("lRightPop(...) => key= {}", key); + log.debug("lRightPop(...) => key= {}", key); String item = stringRedisTemplate.opsForList().rightPop(key); - log.info("lRightPop(...) => item= {}", item); + log.debug("lRightPop(...) => item= {}", item); return item; } @@ -1416,9 +1416,9 @@ public class RedisClient implements InitializingBean { * 与{@link ListOps#lLeftPop(String, Long, TimeUnit)}类比即可, 不过是从list右侧移出元素 */ public static String lRightPop(String key, Long timeout, TimeUnit unit) { - log.info("lRightPop(...) => key= {}, timeout= {}, unit= {}", key, timeout, unit); + log.debug("lRightPop(...) => key= {}, timeout= {}, unit= {}", key, timeout, unit); String item = stringRedisTemplate.opsForList().rightPop(key, timeout, unit); - log.info("lRightPop(...) => item= {}", item); + log.debug("lRightPop(...) => item= {}", item); return item; } @@ -1441,10 +1441,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 15:06:59 */ public static String lRightPopAndLeftPush(String sourceKey, String destinationKey) { - log.info("lRightPopAndLeftPush(...) => sourceKey= {}, destinationKey= {}", + log.debug("lRightPopAndLeftPush(...) => sourceKey= {}, destinationKey= {}", sourceKey, destinationKey); String item = stringRedisTemplate.opsForList().rightPopAndLeftPush(sourceKey, destinationKey); - log.info("lRightPopAndLeftPush(...) => item= {}", item); + log.debug("lRightPopAndLeftPush(...) => item= {}", item); return item; } @@ -1473,11 +1473,11 @@ public class RedisClient implements InitializingBean { */ public static String lRightPopAndLeftPush(String sourceKey, String destinationKey, Long timeout, TimeUnit unit) { - log.info("lRightPopAndLeftPush(...) => sourceKey= {}, destinationKey= {}, timeout= {}," + log.debug("lRightPopAndLeftPush(...) => sourceKey= {}, destinationKey= {}, timeout= {}," + " unit= {}", sourceKey, destinationKey, timeout, unit); String item = stringRedisTemplate.opsForList() .rightPopAndLeftPush(sourceKey, destinationKey, timeout, unit); - log.info("lRightPopAndLeftPush(...) => item= {}", item); + log.debug("lRightPopAndLeftPush(...) => item= {}", item); return item; } @@ -1496,7 +1496,7 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 15:39:50 */ public static void lSet(String key, Long index, String item) { - log.info("lSet(...) => key= {}, index= {}, item= {}", key, index, item); + log.debug("lSet(...) => key= {}, index= {}, item= {}", key, index, item); stringRedisTemplate.opsForList().set(key, index, item); } @@ -1514,9 +1514,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/10 0:27:23 */ public static String lIndex(String key, Long index) { - log.info("lIndex(...) => key= {}, index= {}", key, index); + log.debug("lIndex(...) => key= {}, index= {}", key, index); String item = stringRedisTemplate.opsForList().index(key, index); - log.info("lIndex(...) => item= {}", item); + log.debug("lIndex(...) => item= {}", item); return item; } @@ -1540,9 +1540,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/10 0:34:59 */ public static List lRange(String key, Long start, Long end) { - log.info("lRange(...) => key= {}, start= {}, end= {}", key, start, end); + log.debug("lRange(...) => key= {}, start= {}, end= {}", key, start, end); List result = stringRedisTemplate.opsForList().range(key, start, end); - log.info("lRange(...) => result= {}", result); + log.debug("lRange(...) => result= {}", result); return result; } @@ -1557,9 +1557,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/10 0:46:50 */ public static List lWholeList(String key) { - log.info("lWholeList(...) => key= {}", key); + log.debug("lWholeList(...) => key= {}", key); List result = stringRedisTemplate.opsForList().range(key, 0, -1); - log.info("lWholeList(...) => result= {}", result); + log.debug("lWholeList(...) => result= {}", result); return result; } @@ -1576,9 +1576,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/10 0:48:40 */ public static Long lSize(String key) { - log.info("lSize(...) => key= {}", key); + log.debug("lSize(...) => key= {}", key); Long size = stringRedisTemplate.opsForList().size(key); - log.info("lSize(...) => size= {}", size); + log.debug("lSize(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1607,9 +1607,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/10 0:52:57 */ public static Long lRemove(String key, Long expectCount, String item) { - log.info("lRemove(...) => key= {}, expectCount= {}, item= {}", key, expectCount, item); + log.debug("lRemove(...) => key= {}, expectCount= {}, item= {}", key, expectCount, item); Long actualCount = stringRedisTemplate.opsForList().remove(key, expectCount, item); - log.info("lRemove(...) => actualCount= {}", actualCount); + log.debug("lRemove(...) => actualCount= {}", actualCount); if (actualCount == null) { throw new RedisOpsResultIsNullException(); } @@ -1634,7 +1634,7 @@ public class RedisClient implements InitializingBean { * @date 2020/3/10 1:16:58 */ public static void lTrim(String key, Long start, Long end) { - log.info("lTrim(...) => key= {}, start= {}, end= {}", key, start, end); + log.debug("lTrim(...) => key= {}, start= {}, end= {}", key, start, end); stringRedisTemplate.opsForList().trim(key, start, end); } @@ -1668,9 +1668,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 8:16:00 */ public static Long sAdd(String key, String... items) { - log.info("sAdd(...) => key= {}, items= {}", key, items); + log.debug("sAdd(...) => key= {}, items= {}", key, items); Long count = stringRedisTemplate.opsForSet().add(key, items); - log.info("sAdd(...) => count= {}", count); + log.debug("sAdd(...) => count= {}", count); if (count == null) { throw new RedisOpsResultIsNullException(); } @@ -1692,9 +1692,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 8:26:43 */ public static Long sRemove(String key, Object... items) { - log.info("sRemove(...) => key= {}, items= {}", key, items); + log.debug("sRemove(...) => key= {}, items= {}", key, items); Long count = stringRedisTemplate.opsForSet().remove(key, items); - log.info("sRemove(...) => count= {}", count); + log.debug("sRemove(...) => count= {}", count); if (count == null) { throw new RedisOpsResultIsNullException(); } @@ -1716,9 +1716,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 8:32:40 */ public static String sPop(String key) { - log.info("sPop(...) => key= {}", key); + log.debug("sPop(...) => key= {}", key); String popItem = stringRedisTemplate.opsForSet().pop(key); - log.info("sPop(...) => popItem= {}", popItem); + log.debug("sPop(...) => popItem= {}", popItem); return popItem; } @@ -1742,9 +1742,9 @@ public class RedisClient implements InitializingBean { */ public static Boolean sMove(String sourceKey, String item, String destinationKey) { Boolean result = stringRedisTemplate.opsForSet().move(sourceKey, item, destinationKey); - log.info("sMove(...) => sourceKey= {}, destinationKey= {}, item= {}", + log.debug("sMove(...) => sourceKey= {}, destinationKey= {}, item= {}", sourceKey, destinationKey, item); - log.info("sMove(...) => result= {}", result); + log.debug("sMove(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -1763,9 +1763,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 8:57:19 */ public static Long sSize(String key) { - log.info("sSize(...) => key= {}", key); + log.debug("sSize(...) => key= {}", key); Long size = stringRedisTemplate.opsForSet().size(key); - log.info("sSize(...) => size= {}", size); + log.debug("sSize(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1786,9 +1786,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 9:03:29 */ public static Boolean sIsMember(String key, Object item) { - log.info("sSize(...) => key= {}, size= {}", key, item); + log.debug("sSize(...) => key= {}, size= {}", key, item); Boolean result = stringRedisTemplate.opsForSet().isMember(key, item); - log.info("sSize(...) => result= {}", result); + log.debug("sSize(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -1810,9 +1810,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 9:31:25 */ public static Set sIntersect(String key, String otherKey) { - log.info("sIntersect(...) => key= {}, otherKey= {}", key, otherKey); + log.debug("sIntersect(...) => key= {}, otherKey= {}", key, otherKey); Set intersectResult = stringRedisTemplate.opsForSet().intersect(key, otherKey); - log.info("sIntersect(...) => intersectResult= {}", intersectResult); + log.debug("sIntersect(...) => intersectResult= {}", intersectResult); return intersectResult; } @@ -1831,9 +1831,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 9:39:23 */ public static Set sIntersect(String key, Collection otherKeys) { - log.info("sIntersect(...) => key= {}, otherKeys= {}", key, otherKeys); + log.debug("sIntersect(...) => key= {}, otherKeys= {}", key, otherKeys); Set intersectResult = stringRedisTemplate.opsForSet().intersect(key, otherKeys); - log.info("sIntersect(...) => intersectResult= {}", intersectResult); + log.debug("sIntersect(...) => intersectResult= {}", intersectResult); return intersectResult; } @@ -1857,10 +1857,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 9:46:46 */ public static Long sIntersectAndStore(String key, String otherKey, String storeKey) { - log.info("sIntersectAndStore(...) => key= {}, otherKey= {}, storeKey= {}", + log.debug("sIntersectAndStore(...) => key= {}, otherKey= {}, storeKey= {}", key, otherKey, storeKey); Long size = stringRedisTemplate.opsForSet().intersectAndStore(key, otherKey, storeKey); - log.info("sIntersectAndStore(...) => size= {}", size); + log.debug("sIntersectAndStore(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1880,10 +1880,10 @@ public class RedisClient implements InitializingBean { */ public static Long sIntersectAndStore(String key, Collection otherKeys, String storeKey) { - log.info("sIntersectAndStore(...) => key= {}, otherKeys= {}, storeKey= {}", key, otherKeys, + log.debug("sIntersectAndStore(...) => key= {}, otherKeys= {}, storeKey= {}", key, otherKeys, storeKey); Long size = stringRedisTemplate.opsForSet().intersectAndStore(key, otherKeys, storeKey); - log.info("sIntersectAndStore(...) => size= {}", size); + log.debug("sIntersectAndStore(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1904,9 +1904,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 11:18:35 */ public static Set sUnion(String key, String otherKey) { - log.info("sUnion(...) => key= {}, otherKey= {}", key, otherKey); + log.debug("sUnion(...) => key= {}, otherKey= {}", key, otherKey); Set unionResult = stringRedisTemplate.opsForSet().union(key, otherKey); - log.info("sUnion(...) => unionResult= {}", unionResult); + log.debug("sUnion(...) => unionResult= {}", unionResult); return unionResult; } @@ -1924,9 +1924,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 11:18:35 */ public static Set sUnion(String key, Collection otherKeys) { - log.info("sUnion(...) => key= {}, otherKeys= {}", key, otherKeys); + log.debug("sUnion(...) => key= {}, otherKeys= {}", key, otherKeys); Set unionResult = stringRedisTemplate.opsForSet().union(key, otherKeys); - log.info("sUnion(...) => unionResult= {}", unionResult); + log.debug("sUnion(...) => unionResult= {}", unionResult); return unionResult; } @@ -1950,10 +1950,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 12:26:24 */ public static Long sUnionAndStore(String key, String otherKey, String storeKey) { - log.info("sUnionAndStore(...) => key= {}, otherKey= {}, storeKey= {}", + log.debug("sUnionAndStore(...) => key= {}, otherKey= {}, storeKey= {}", key, otherKey, storeKey); Long size = stringRedisTemplate.opsForSet().unionAndStore(key, otherKey, storeKey); - log.info("sUnionAndStore(...) => size= {}", size); + log.debug("sUnionAndStore(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -1980,10 +1980,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 12:26:24 */ public static Long sUnionAndStore(String key, Collection otherKeys, String storeKey) { - log.info("sUnionAndStore(...) => key= {}, otherKeys= {}, storeKey= {}", + log.debug("sUnionAndStore(...) => key= {}, otherKeys= {}, storeKey= {}", key, otherKeys, storeKey); Long size = stringRedisTemplate.opsForSet().unionAndStore(key, otherKeys, storeKey); - log.info("sUnionAndStore(...) => size= {}", size); + log.debug("sUnionAndStore(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -2005,10 +2005,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 14:03:57 */ public static Set sDifference(String key, String otherKey) { - log.info("sDifference(...) => key= {}, otherKey= {}", + log.debug("sDifference(...) => key= {}, otherKey= {}", key, otherKey); Set differenceResult = stringRedisTemplate.opsForSet().difference(key, otherKey); - log.info("sDifference(...) => differenceResult= {}", differenceResult); + log.debug("sDifference(...) => differenceResult= {}", differenceResult); return differenceResult; } @@ -2029,9 +2029,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 14:03:57 */ public static Set sDifference(String key, Collection otherKeys) { - log.info("sDifference(...) => key= {}, otherKeys= {}", key, otherKeys); + log.debug("sDifference(...) => key= {}, otherKeys= {}", key, otherKeys); Set differenceResult = stringRedisTemplate.opsForSet().difference(key, otherKeys); - log.info("sDifference(...) => differenceResult= {}", differenceResult); + log.debug("sDifference(...) => differenceResult= {}", differenceResult); return differenceResult; } @@ -2055,10 +2055,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 14:33:36 */ public static Long sDifferenceAndStore(String key, String otherKey, String storeKey) { - log.info("sDifferenceAndStore(...) => key= {}, otherKey= {}, storeKey= {}", + log.debug("sDifferenceAndStore(...) => key= {}, otherKey= {}, storeKey= {}", key, otherKey, storeKey); Long size = stringRedisTemplate.opsForSet().differenceAndStore(key, otherKey, storeKey); - log.info("sDifferenceAndStore(...) => size= {}", size); + log.debug("sDifferenceAndStore(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -2086,10 +2086,10 @@ public class RedisClient implements InitializingBean { */ public static Long sDifferenceAndStore(String key, Collection otherKeys, String storeKey) { - log.info("sDifferenceAndStore(...) => key= {}, otherKeys= {}, storeKey= {}", + log.debug("sDifferenceAndStore(...) => key= {}, otherKeys= {}, storeKey= {}", key, otherKeys, storeKey); Long size = stringRedisTemplate.opsForSet().differenceAndStore(key, otherKeys, storeKey); - log.info("sDifferenceAndStore(...) => size= {}", size); + log.debug("sDifferenceAndStore(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -2107,9 +2107,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 14:49:39 */ public static Set sMembers(String key) { - log.info("sMembers(...) => key= {}", key); + log.debug("sMembers(...) => key= {}", key); Set members = stringRedisTemplate.opsForSet().members(key); - log.info("sMembers(...) => members= {}", members); + log.debug("sMembers(...) => members= {}", members); return members; } @@ -2122,9 +2122,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 14:54:58 */ public static String sRandomMember(String key) { - log.info("sRandomMember(...) => key= {}", key); + log.debug("sRandomMember(...) => key= {}", key); String randomItem = stringRedisTemplate.opsForSet().randomMember(key); - log.info("sRandomMember(...) => randomItem= {}", randomItem); + log.debug("sRandomMember(...) => randomItem= {}", randomItem); return randomItem; } @@ -2143,9 +2143,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 14:54:58 */ public static List sRandomMembers(String key, Long count) { - log.info("sRandomMembers(...) => key= {}, count= {}", key, count); + log.debug("sRandomMembers(...) => key= {}, count= {}", key, count); List randomItems = stringRedisTemplate.opsForSet().randomMembers(key, count); - log.info("sRandomMembers(...) => randomItems= {}", randomItems); + log.debug("sRandomMembers(...) => randomItems= {}", randomItems); return randomItems; } @@ -2164,9 +2164,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 14:54:58 */ public static Set sDistinctRandomMembers(String key, Long count) { - log.info("sDistinctRandomMembers(...) => key= {}, count= {}", key, count); + log.debug("sDistinctRandomMembers(...) => key= {}, count= {}", key, count); Set distinctRandomItems = stringRedisTemplate.opsForSet().distinctRandomMembers(key, count); - log.info("sDistinctRandomMembers(...) => distinctRandomItems= {}", distinctRandomItems); + log.debug("sDistinctRandomMembers(...) => distinctRandomItems= {}", distinctRandomItems); return distinctRandomItems; } @@ -2193,9 +2193,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/9 10:49:27 */ public static Cursor sScan(String key, ScanOptions options) { - log.info("sScan(...) => key= {}, options= {}", key, JSON.toJSONString(options)); + log.debug("sScan(...) => key= {}, options= {}", key, JSON.toJSONString(options)); Cursor cursor = stringRedisTemplate.opsForSet().scan(key, options); - log.info("sScan(...) => cursor= {}", JSON.toJSONString(cursor)); + log.debug("sScan(...) => cursor= {}", JSON.toJSONString(cursor)); return cursor; } } @@ -2236,9 +2236,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 15:35:30 */ public static Boolean zAdd(String key, String item, Double score) { - log.info("zAdd(...) => key= {}, item= {}, score= {}", key, item, score); + log.debug("zAdd(...) => key= {}, item= {}, score= {}", key, item, score); Boolean result = stringRedisTemplate.opsForZSet().add(key, item, score); - log.info("zAdd(...) => result= {}", result); + log.debug("zAdd(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); } @@ -2263,9 +2263,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 16:45:45 */ public static Long zAdd(String key, Set> entries) { - log.info("zAdd(...) => key= {}, entries= {}", key, JSON.toJSONString(entries)); + log.debug("zAdd(...) => key= {}, entries= {}", key, JSON.toJSONString(entries)); Long count = stringRedisTemplate.opsForZSet().add(key, entries); - log.info("zAdd(...) => count= {}", count); + log.debug("zAdd(...) => count= {}", count); if (count == null) { throw new RedisOpsResultIsNullException(); } @@ -2286,9 +2286,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 17:20:12 */ public static Long zRemove(String key, Object... items) { - log.info("zRemove(...) => key= {}, items= {}", key, items); + log.debug("zRemove(...) => key= {}, items= {}", key, items); Long count = stringRedisTemplate.opsForZSet().remove(key, items); - log.info("zRemove(...) => count= {}", count); + log.debug("zRemove(...) => count= {}", count); if (count == null) { throw new RedisOpsResultIsNullException(); } @@ -2323,10 +2323,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 17:20:12 */ public static Long zRemoveRange(String key, Long startRange, Long endRange) { - log.info("zRemoveRange(...) => key= {}, startRange= {}, endRange= {}", + log.debug("zRemoveRange(...) => key= {}, startRange= {}, endRange= {}", key, startRange, endRange); Long count = stringRedisTemplate.opsForZSet().removeRange(key, startRange, endRange); - log.info("zRemoveRange(...) => count= {}", count); + log.debug("zRemoveRange(...) => count= {}", count); if (count == null) { throw new RedisOpsResultIsNullException(); } @@ -2354,10 +2354,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 17:20:12 */ public static Long zRemoveRangeByScore(String key, Double minScore, Double maxScore) { - log.info("zRemoveRangeByScore(...) => key= {}, startIndex= {}, startIndex= {}", + log.debug("zRemoveRangeByScore(...) => key= {}, startIndex= {}, startIndex= {}", key, minScore, maxScore); Long count = stringRedisTemplate.opsForZSet().removeRangeByScore(key, minScore, maxScore); - log.info("zRemoveRangeByScore(...) => count= {}", count); + log.debug("zRemoveRangeByScore(...) => count= {}", count); if (count == null) { throw new RedisOpsResultIsNullException(); } @@ -2377,9 +2377,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/12 8:55:38 */ public static Double zIncrementScore(String key, String item, Double delta) { - log.info("zIncrementScore(...) => key= {}, item= {}, delta= {}", key, item, delta); + log.debug("zIncrementScore(...) => key= {}, item= {}, delta= {}", key, item, delta); Double scoreValue = stringRedisTemplate.opsForZSet().incrementScore(key, item, delta); - log.info("zIncrementScore(...) => scoreValue= {}", scoreValue); + log.debug("zIncrementScore(...) => scoreValue= {}", scoreValue); if (scoreValue == null) { throw new RedisOpsResultIsNullException(); } @@ -2402,9 +2402,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/12 9:14:09 */ public static Long zRank(String key, Object item) { - log.info("zRank(...) => key= {}, item= {}", key, item); + log.debug("zRank(...) => key= {}, item= {}", key, item); Long rank = stringRedisTemplate.opsForZSet().rank(key, item); - log.info("zRank(...) => rank= {}", rank); + log.debug("zRank(...) => rank= {}", rank); if (rank == null) { throw new RedisOpsResultIsNullException(); } @@ -2427,9 +2427,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/12 9:14:09 */ public static Long zReverseRank(String key, Object item) { - log.info("zReverseRank(...) => key= {}, item= {}", key, item); + log.debug("zReverseRank(...) => key= {}, item= {}", key, item); Long reverseRank = stringRedisTemplate.opsForZSet().reverseRank(key, item); - log.info("zReverseRank(...) => reverseRank= {}", reverseRank); + log.debug("zReverseRank(...) => reverseRank= {}", reverseRank); if (reverseRank == null) { throw new RedisOpsResultIsNullException(); } @@ -2460,9 +2460,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/12 9:50:40 */ public static Set zRange(String key, Long start, Long end) { - log.info("zRange(...) => key= {}, start= {}, end= {}", key, start, end); + log.debug("zRange(...) => key= {}, start= {}, end= {}", key, start, end); Set result = stringRedisTemplate.opsForZSet().range(key, start, end); - log.info("zRange(...) => result= {}", result); + log.debug("zRange(...) => result= {}", result); return result; } @@ -2478,9 +2478,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/12 10:02:07 */ public static Set zWholeSortSetItem(String key) { - log.info("zWholeZSetItem(...) => key= {}", key); + log.debug("zWholeZSetItem(...) => key= {}", key); Set result = stringRedisTemplate.opsForZSet().range(key, 0, -1); - log.info("zWholeZSetItem(...) =>result= {}", result); + log.debug("zWholeZSetItem(...) =>result= {}", result); return result; } @@ -2510,9 +2510,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/12 9:50:40 */ public static Set> zRangeWithScores(String key, Long start, Long end) { - log.info("zRangeWithScores(...) => key= {}, start= {}, end= {}", key, start, end); + log.debug("zRangeWithScores(...) => key= {}, start= {}, end= {}", key, start, end); Set> entries = stringRedisTemplate.opsForZSet().rangeWithScores(key, start, end); - log.info("zRangeWithScores(...) => entries= {}", JSON.toJSONString(entries)); + log.debug("zRangeWithScores(...) => entries= {}", JSON.toJSONString(entries)); return entries; } @@ -2528,9 +2528,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/12 10:02:07 */ public static Set> zWholeSortSetEntry(String key) { - log.info("zWholeZSetEntry(...) => key= {}", key); + log.debug("zWholeZSetEntry(...) => key= {}", key); Set> entries = stringRedisTemplate.opsForZSet().rangeWithScores(key, 0, -1); - log.info("zWholeZSetEntry(...) => entries= {}", JSON.toJSONString(entries)); + log.debug("zWholeZSetEntry(...) => entries= {}", JSON.toJSONString(entries)); return entries; } @@ -2556,10 +2556,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/12 9:50:40 */ public static Set zRangeByScore(String key, Double minScore, Double maxScore) { - log.info("zRangeByScore(...) => key= {}, minScore= {}, maxScore= {}", key, minScore, + log.debug("zRangeByScore(...) => key= {}, minScore= {}, maxScore= {}", key, minScore, maxScore); Set items = stringRedisTemplate.opsForZSet().rangeByScore(key, minScore, maxScore); - log.info("zRangeByScore(...) => items= {}", items); + log.debug("zRangeByScore(...) => items= {}", items); return items; } @@ -2592,11 +2592,11 @@ public class RedisClient implements InitializingBean { */ public static Set zRangeByScore(String key, Double minScore, Double maxScore, Long offset, Long count) { - log.info("zRangeByScore(...) => key= {}, minScore= {}, maxScore= {}, offset= {}, " + log.debug("zRangeByScore(...) => key= {}, minScore= {}, maxScore= {}, offset= {}, " + "count= {}", key, minScore, maxScore, offset, count); Set items = stringRedisTemplate.opsForZSet() .rangeByScore(key, minScore, maxScore, offset, count); - log.info("zRangeByScore(...) => items= {}", items); + log.debug("zRangeByScore(...) => items= {}", items); return items; } @@ -2620,11 +2620,11 @@ public class RedisClient implements InitializingBean { */ public static Set> zRangeByScoreWithScores(String key, Double minScore, Double maxScore) { - log.info("zRangeByScoreWithScores(...) => key= {}, minScore= {}, maxScore= {}", + log.debug("zRangeByScoreWithScores(...) => key= {}, minScore= {}, maxScore= {}", key, minScore, maxScore); Set> entries = stringRedisTemplate.opsForZSet() .rangeByScoreWithScores(key, minScore, maxScore); - log.info("zRangeByScoreWithScores(...) => entries= {}", JSON.toJSONString(entries)); + log.debug("zRangeByScoreWithScores(...) => entries= {}", JSON.toJSONString(entries)); return entries; } @@ -2650,13 +2650,13 @@ public class RedisClient implements InitializingBean { public static Set> zRangeByScoreWithScores(String key, Double minScore, Double maxScore, Long offset, Long count) { - log.info("zRangeByScoreWithScores(...) => key= {}, minScore= {}, maxScore= {}," + log.debug("zRangeByScoreWithScores(...) => key= {}, minScore= {}, maxScore= {}," + " offset= {}, count= {}", key, minScore, maxScore, offset, count); Set> entries = stringRedisTemplate.opsForZSet() .rangeByScoreWithScores(key, minScore, maxScore, offset, count); - log.info("zRangeByScoreWithScores(...) => entries= {}", JSON.toJSONString(entries)); + log.debug("zRangeByScoreWithScores(...) => entries= {}", JSON.toJSONString(entries)); return entries; } @@ -2667,9 +2667,9 @@ public class RedisClient implements InitializingBean { * @see SortSetOps#zRange(String, Long, Long)。 只是zReverseRange这里会提前多一个倒序。 */ public static Set zReverseRange(String key, Long start, Long end) { - log.info("zReverseRange(...) => key= {}, start= {}, end= {}", key, start, end); + log.debug("zReverseRange(...) => key= {}, start= {}, end= {}", key, start, end); Set entries = stringRedisTemplate.opsForZSet().reverseRange(key, start, end); - log.info("zReverseRange(...) => entries= {}", entries); + log.debug("zReverseRange(...) => entries= {}", entries); return entries; } @@ -2680,10 +2680,10 @@ public class RedisClient implements InitializingBean { */ public static Set> zReverseRangeWithScores(String key, Long start, Long end) { - log.info("zReverseRangeWithScores(...) => key= {}, start= {}, end= {}", key, start, end); + log.debug("zReverseRangeWithScores(...) => key= {}, start= {}, end= {}", key, start, end); Set> entries = stringRedisTemplate.opsForZSet() .reverseRangeWithScores(key, start, end); - log.info("zReverseRangeWithScores(...) => entries= {}", JSON.toJSONString(entries)); + log.debug("zReverseRangeWithScores(...) => entries= {}", JSON.toJSONString(entries)); return entries; } @@ -2693,10 +2693,10 @@ public class RedisClient implements InitializingBean { * @see SortSetOps#zRangeByScore(String, Double, Double)。 只是zReverseRangeByScore这里会提前多一个倒序。 */ public static Set zReverseRangeByScore(String key, Double minScore, Double maxScore) { - log.info("zReverseRangeByScore(...) => key= {}, minScore= {}, maxScore= {}", + log.debug("zReverseRangeByScore(...) => key= {}, minScore= {}, maxScore= {}", key, minScore, maxScore); Set items = stringRedisTemplate.opsForZSet().reverseRangeByScore(key, minScore, maxScore); - log.info("zReverseRangeByScore(...) => items= {}", items); + log.debug("zReverseRangeByScore(...) => items= {}", items); return items; } @@ -2707,12 +2707,12 @@ public class RedisClient implements InitializingBean { */ public static Set> zReverseRangeByScoreWithScores(String key, Double minScore, Double maxScore) { - log.info("zReverseRangeByScoreWithScores(...) => key= {}, minScore= {}, maxScore= {}", + log.debug("zReverseRangeByScoreWithScores(...) => key= {}, minScore= {}, maxScore= {}", key, minScore, maxScore); Set> entries = stringRedisTemplate.opsForZSet() .reverseRangeByScoreWithScores(key, minScore, maxScore); - log.info("zReverseRangeByScoreWithScores(...) => entries= {}", JSON.toJSONString(entries)); + log.debug("zReverseRangeByScoreWithScores(...) => entries= {}", JSON.toJSONString(entries)); return entries; } @@ -2724,11 +2724,11 @@ public class RedisClient implements InitializingBean { */ public static Set zReverseRangeByScore(String key, Double minScore, Double maxScore, Long offset, Long count) { - log.info("zReverseRangeByScore(...) => key= {}, minScore= {}, maxScore= {}, offset= {}, " + log.debug("zReverseRangeByScore(...) => key= {}, minScore= {}, maxScore= {}, offset= {}, " + "count= {}", key, minScore, maxScore, offset, count); Set items = stringRedisTemplate.opsForZSet() .reverseRangeByScore(key, minScore, maxScore, offset, count); - log.info("items= {}", items); + log.debug("items= {}", items); return items; } @@ -2746,9 +2746,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/13 12:20:43 */ public static Long zCount(String key, Double minScore, Double maxScore) { - log.info("zCount(...) => key= {}, minScore= {}, maxScore= {}", key, minScore, maxScore); + log.debug("zCount(...) => key= {}, minScore= {}, maxScore= {}", key, minScore, maxScore); Long count = stringRedisTemplate.opsForZSet().count(key, minScore, maxScore); - log.info("zCount(...) => count= {}", count); + log.debug("zCount(...) => count= {}", count); if (count == null) { throw new RedisOpsResultIsNullException(); } @@ -2767,9 +2767,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/13 12:20:43 */ public static Long zSize(String key) { - log.info("zSize(...) => key= {}", key); + log.debug("zSize(...) => key= {}", key); Long size = stringRedisTemplate.opsForZSet().size(key); - log.info("zSize(...) => size= {}", size); + log.debug("zSize(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -2788,9 +2788,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/13 12:20:43 */ public static Long sortSetCard(String key) { - log.info("zZCard(...) => key= {}", key); + log.debug("zZCard(...) => key= {}", key); Long size = stringRedisTemplate.opsForZSet().zCard(key); - log.info("zZCard(...) => size= {}", size); + log.debug("zZCard(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -2809,9 +2809,9 @@ public class RedisClient implements InitializingBean { * @date 2020/3/13 14:51:43 */ public static Double zScore(String key, Object item) { - log.info("zScore(...) => key= {}, item= {}", key, item); + log.debug("zScore(...) => key= {}, item= {}", key, item); Double score = stringRedisTemplate.opsForZSet().score(key, item); - log.info("zScore(...) => score= {}", score); + log.debug("zScore(...) => score= {}", score); if (score == null) { throw new RedisOpsResultIsNullException(); } @@ -2840,10 +2840,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 12:26:24 */ public static Long zUnionAndStore(String key, String otherKey, String storeKey) { - log.info("zUnionAndStore(...) => key= {}, otherKey= {}, storeKey= {}", key, otherKey, + log.debug("zUnionAndStore(...) => key= {}, otherKey= {}, storeKey= {}", key, otherKey, storeKey); Long size = stringRedisTemplate.opsForZSet().unionAndStore(key, otherKey, storeKey); - log.info("zUnionAndStore(...) => size= {}", size); + log.debug("zUnionAndStore(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -2872,10 +2872,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 12:26:24 */ public static Long zUnionAndStore(String key, Collection otherKeys, String storeKey) { - log.info("zUnionAndStore(...) => key= {}, otherKeys= {}, storeKey= {}", key, otherKeys, + log.debug("zUnionAndStore(...) => key= {}, otherKeys= {}, storeKey= {}", key, otherKeys, storeKey); Long size = stringRedisTemplate.opsForZSet().unionAndStore(key, otherKeys, storeKey); - log.info("zUnionAndStore(...) => size= {}", size); + log.debug("zUnionAndStore(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -2908,10 +2908,10 @@ public class RedisClient implements InitializingBean { * @date 2020/3/11 9:46:46 */ public static Long zIntersectAndStore(String key, String otherKey, String storeKey) { - log.info("zIntersectAndStore(...) => key= {}, otherKey= {}, storeKey= {}", key, otherKey, + log.debug("zIntersectAndStore(...) => key= {}, otherKey= {}, storeKey= {}", key, otherKey, storeKey); Long size = stringRedisTemplate.opsForZSet().intersectAndStore(key, otherKey, storeKey); - log.info("zIntersectAndStore(...) => size= {}", size); + log.debug("zIntersectAndStore(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -2937,10 +2937,10 @@ public class RedisClient implements InitializingBean { */ public static Long zIntersectAndStore(String key, Collection otherKeys, String storeKey) { - log.info("zIntersectAndStore(...) => key= {}, otherKeys= {}, storeKey= {}", + log.debug("zIntersectAndStore(...) => key= {}, otherKeys= {}, storeKey= {}", key, otherKeys, storeKey); Long size = stringRedisTemplate.opsForZSet().intersectAndStore(key, otherKeys, storeKey); - log.info("zIntersectAndStore(...) => size= {}", size); + log.debug("zIntersectAndStore(...) => size= {}", size); if (size == null) { throw new RedisOpsResultIsNullException(); } @@ -3044,7 +3044,7 @@ public class RedisClient implements InitializingBean { public static Boolean getLockUntilTimeout(final String key, final String value, final Long timeout, final TimeUnit unit, final Long retryTimeoutLimit) { - log.info("getLockUntilTimeout(...) => key= {}, value= {}, timeout= {}, unit= {}, " + log.debug("getLockUntilTimeout(...) => key= {}, value= {}, timeout= {}, unit= {}, " + "retryTimeoutLimit= {}ms", key, value, timeout, unit, retryTimeoutLimit); Long startTime = Instant.now().toEpochMilli(); Long now = startTime; @@ -3052,7 +3052,7 @@ public class RedisClient implements InitializingBean { try { Boolean alreadyGotLock = getLock(key, value, timeout, unit, false); if (alreadyGotLock) { - log.info("getLockUntilTimeout(...) => consume time= {}ms, result= true", + log.debug("getLockUntilTimeout(...) => consume time= {}ms, result= true", now - startTime); return true; } @@ -3062,7 +3062,7 @@ public class RedisClient implements InitializingBean { } now = Instant.now().toEpochMilli(); } while (now < startTime + retryTimeoutLimit); - log.info("getLockUntilTimeout(...) => consume time= {}ms, result= false", now - startTime); + log.debug("getLockUntilTimeout(...) => consume time= {}ms, result= false", now - startTime); return false; } @@ -3107,7 +3107,7 @@ public class RedisClient implements InitializingBean { final Long timeout, final TimeUnit unit, Boolean recordLog) { if (recordLog) { - log.info("getLock(...) => key= {}, value= {}, timeout= {}, unit= {}, recordLog= {}", + log.debug("getLock(...) => key= {}, value= {}, timeout= {}, unit= {}, recordLog= {}", key, value, timeout, unit, recordLog); } Boolean result = stringRedisTemplate.execute((RedisConnection connection) -> @@ -3117,7 +3117,7 @@ public class RedisClient implements InitializingBean { RedisStringCommands.SetOption.SET_IF_ABSENT) ); if (recordLog) { - log.info("getLock(...) => result= {}", result); + log.debug("getLock(...) => result= {}", result); } if (result == null) { throw new RedisOpsResultIsNullException(); @@ -3140,13 +3140,13 @@ public class RedisClient implements InitializingBean { * @date 2020/3/15 17:00:45 */ public static Boolean releaseLock(final String key, final String value) { - log.info("releaseLock(...) => key= {}, lockValue= {}", key, value); + log.debug("releaseLock(...) => key= {}, lockValue= {}", key, value); Boolean result = stringRedisTemplate.execute((RedisConnection connection) -> connection.eval(RELEASE_LOCK_LUA.getBytes(), ReturnType.BOOLEAN, 1, key.getBytes(StandardCharsets.UTF_8), value.getBytes(StandardCharsets.UTF_8)) ); - log.info("releaseLock(...) => result= {}", result); + log.debug("releaseLock(...) => result= {}", result); if (result == null) { throw new RedisOpsResultIsNullException(); }