In ruby, how could I trigger a program when redis is not empy?

61 Views Asked by At

I use redis list as a queue, i also have a consumer program take the stuff from redis. I want to have the consumer in ruby take stuff from redis as long as redis is not empty. Do you know how could i achieve this? Right now, I manually run the consumer program.

0

There are 0 best solutions below