Browse Source

修复hkeys问题

master 7.3.4
richie 4 years ago
parent
commit
c4b6a2c774
  1. 2
      src/main/java/com/fr/plugin/db/redis/help/client/BaseRedisClient.java

2
src/main/java/com/fr/plugin/db/redis/help/client/BaseRedisClient.java

@ -50,7 +50,7 @@ public abstract class BaseRedisClient<A> implements RedisClient<A> {
@ScriptBridge @ScriptBridge
public String hkeys(String key) { public String hkeys(String key) {
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
Set<String> set = jedis.keys(key); Set<String> set = jedis.hkeys(key);
LogKit.info("Fetch data from redis spend time {} ms.", System.currentTimeMillis() - start); LogKit.info("Fetch data from redis spend time {} ms.", System.currentTimeMillis() - start);
return object2JSONString(set); return object2JSONString(set);
} }

Loading…
Cancel
Save