This seems like a good option for pub / sub: http://redis.io/topics/pubsub
Your Node.js process, which sporadically pushes Redis, can also post to the channel every time it pushes something. Like this:
var pushClient = redis.createClient();
Then your other process will subscribe to this channel. Each time the message event is triggered, you delete everything that was just clicked:
var client = redis.createClient(); client.subscribe("pubsub-channel"); client.on("message", function(channel, message){
Mike source share