♻️ Refactoring code. redis 过期API
This commit is contained in:
1 parent
7f46d9791b
commit
64d4dd6484
1 file changed
+1
-1
+1
-1
@@ -32,7 +32,7 @@ public class SysSystemInfoController {
|
||||
public R cache() {
|
||||
Properties info = (Properties) redisTemplate.execute((RedisCallback<Object>) RedisServerCommands::info);
|
||||
Properties commandStats = (Properties) redisTemplate
|
||||
.execute((RedisCallback<Object>) connection -> connection.info("commandstats"));
|
||||
.execute((RedisCallback<Object>) connection -> connection.serverCommands().info("commandstats"));
|
||||
Object dbSize = redisTemplate.execute((RedisCallback<Object>) RedisServerCommands::dbSize);
|
||||
|
||||
if (commandStats == null) {
|
||||
|
||||
Reference in new issue
Block a user