Follow up changes on "pubsub numsub" output

* String, String to String, Long
* We're avoiding to break backward compatibility
** convert Long to String so that return type is same to old type
This commit is contained in:
Jungtaek Lim
2014-08-28 18:14:49 +09:00
parent 419f0c7d17
commit 431ae79ff1
2 changed files with 21 additions and 1 deletions

View File

@@ -3388,7 +3388,7 @@ public class Jedis extends BinaryJedis implements JedisCommands,
public Map<String, String> pubsubNumSub(String... channels) {
checkIsInMulti();
client.pubsubNumSub(channels);
return BuilderFactory.STRING_MAP
return BuilderFactory.PUBSUB_NUMSUB_MAP
.build(client.getBinaryMultiBulkReply());
}