nrk / redis-lua

A Lua client library for the redis key value storage system.
MIT License
731 stars 239 forks source link

Feature Request: Pub/Sub Support #7

Closed jvinet closed 13 years ago

jvinet commented 13 years ago

Thanks for the great Lua library, we use it throughout our application.

One feature we'd love to see is pub/sub support. At present, we're sending out the same data N times, once for each worker. It would be great to move that to a pub/sub system in the future.

Thanks very much!

nrk commented 13 years ago

Hi Judd,

Right now you can publish messages with the PUBLISH command, but full support for an abstraction of pub/sub (as a consumer) is planned for the next patch release of redis-lua. I will try to take a look when I have some free time to give you an update for this feature request.

Thanks, Daniele

nrk commented 13 years ago

Support for PUB/SUB has been added in the master branch in the form of a coroutine-based iterator used to consume the incoming messages in a for-loop. This addition will be part of redis-lua v2.0.2 once it is ready.

Thanks, Daniele

jvinet commented 13 years ago

This is wonderful. Thanks for your excellent response time, Daniele!

Cheers,

ashbrener commented 9 months ago

Hi, how do I get the PUBSUB CHANNELS * list ?