What is the best way to cancel a blocking request in node-redis?

Viewed 98

I am experimenting with the node-redis library, and I'd like to use the blocking blpop command. My issue is that I'd like to wait an indeterminate amount of time, but potentially cancel waiting at any moment. Is there a way to cleanly cancel a call blpop XYZ 0 without killing the redis connection? I don't seem to see any in the documentation.

0 Answers
Related