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

fixed return codes

parent 1b8e7273
No related branches found
No related tags found
No related merge requests found
......@@ -91,9 +91,9 @@ public class RedisClient extends DB {
public int insert(String table, String key, HashMap<String, String> values) {
if (jedis.hmset(key, values).equals("OK")) {
jedis.zadd(INDEX_KEY, hash(key), key);
return 1;
return 0;
}
return 0;
return 1;
}
@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