I want to submit a patch for redis to support millisecond resolution in blocking commands (currently today they allow for seconds resolution).
The question is how should the syntax of the command be ? - Should it be BLPOP with a double as seconds for the timeout? - Should it be PBLPOP with long as milliseconds for the timeout? (like PEXPIRE)
Personally I think that BLPOP with double should be good enough since nobody can query back this API. so if someone sends an integer, the previous behaviour will work exactly the same. if someone sends a float, we can have sub-second resolution for the blocking command.
Thoughts ?
Comment From: yoav-steinberg
Thanks. Great idea! Already implemented: eca0187370c14aa2c126fe07e5310e44c2780a95 Closing.