Add support for HLL

This commit is contained in:
Marcos Nils
2014-04-03 22:01:15 -03:00
parent 752973de12
commit afefb71e57
6 changed files with 139 additions and 2 deletions

View File

@@ -3412,4 +3412,22 @@ public class Jedis extends BinaryJedis implements JedisCommands,
return BuilderFactory.STRING_MAP
.build(client.getBinaryMultiBulkReply());
}
public Long pfadd(final String key, String... elements) {
checkIsInMulti();
client.pfadd(key, elements);
return client.getIntegerReply();
}
public long pfcount(final String key) {
checkIsInMulti();
client.pfcount(key);
return client.getIntegerReply();
}
public String pfmerge(final String destkey, final String... sourcekeys) {
checkIsInMulti();
client.pfmerge(destkey, sourcekeys);
return client.getStatusCodeReply();
}
}