Need to get this reply from server, otherwise the next read is polluted
This commit is contained in:
committed by
Jonathan Leibiusky
parent
7c0505511e
commit
6a7b1db319
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user