While the Redis documentation says
Note that it is valid to call this command without channels. In this case it will just return an empty list.
Lettuce does not implement this pattern and calling numsub will result in an Exception being thrown
see https://github.com/redis/lettuce/blob/e80bb0b39cff4d73655821108a640e79dd90e3a7/src/main/java/io/lettuce/core/pubsub/PubSubCommandBuilder.java#L69
the underlying command for numSub requires at least one channel to be passed in .
The current implementation here is invalid and will result in Lettuce throwing an exception at runtime .
There are currently no tests for the numSub command
While the Redis documentation says
Lettuce does not implement this pattern and calling
numsubwill result in an Exception being thrownsee https://github.com/redis/lettuce/blob/e80bb0b39cff4d73655821108a640e79dd90e3a7/src/main/java/io/lettuce/core/pubsub/PubSubCommandBuilder.java#L69
the underlying command for
numSubrequires at least one channel to be passed in .The current implementation here is invalid and will result in Lettuce throwing an exception at runtime .
There are currently no tests for the
numSubcommand