Skip to content
Snippets Groups Projects
Commit 4972a29c authored by Robert Lehmann's avatar Robert Lehmann Committed by Robert Lehmann
Browse files

hotfixed namespace collisions

parent 6754b586
No related branches found
No related tags found
No related merge requests found
......@@ -90,9 +90,11 @@ public class RedisClient extends DB {
@Override
public int insert(String table, String key, HashMap<String, String> values) {
return jedis.hmset(key, values).equals("OK")
&& jedis.zadd(INDEX_KEY, hash(key), key) == 1
? 0 : 1;
if (jedis.hmset(key, values).equals("OK")) {
jedis.zadd(INDEX_KEY, hash(key), key);
return 1;
}
return 0;
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment