You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
This is my code, output "use 70 ms", when i remove "redisConnection.select(8);"
output "use 35 ms".
so is there any way to execute method select once?
and excute method select when it reconnects automatically
@OverRide
public void reportCount(int value) {
long start = System.currentTimeMillis();
redisConnection.select(8);
redisConnection.incrby("count", value);
long time = System.currentTimeMillis() - start;
System.out.println("use "+time+"ms");
}
The text was updated successfully, but these errors were encountered:
This is my code, output "use 70 ms", when i remove "redisConnection.select(8);"
output "use 35 ms".
so is there any way to execute method select once?
and excute method select when it reconnects automatically
@OverRide
public void reportCount(int value) {
long start = System.currentTimeMillis();
redisConnection.select(8);
redisConnection.incrby("count", value);
long time = System.currentTimeMillis() - start;
System.out.println("use "+time+"ms");
}
The text was updated successfully, but these errors were encountered: