Open adityagodbole opened 9 years ago
Good point; I don't think the command existed when I introduced this API. It's annoying, but I think the correct solution is to rename the pubsub
method to pubsub_client
as you suggest.
That would be a breaking change though, and would have to be announced and versioned accordingly
The client uses the
pubsub
method to create and return the pubsub client. This masks the redis PUBSUB command. There are two ways I can think of around thispubsub
method to something likepubsub_client
self
toPubsubClient.new
in thepubsub
method and keep a reference to it in thePubsubclient
object. Forward the call to thisClient
object in a method calledpubsub
on thePubsubClient
object.