Need to get this reply from server, otherwise the next read is polluted

This commit is contained in:
Pat Shields
2010-08-30 05:23:05 +08:00
committed by Jonathan Leibiusky
parent 7c0505511e
commit 6a7b1db319

View File

@@ -633,8 +633,9 @@ public class Jedis {
client.rollbackTimeout();
}
public void publish(String channel, String message) {
public int publish(String channel, String message) {
client.publish(channel, message);
return client.getIntegerReply();
}
public void psubscribe(JedisPubSub jedisPubSub, String... patterns) {