BLPOP command ignores timeout
HonzaMac opened this issue · comments
Blpop command does not block connection until there is any element present.
Is there any solution, how to do it in amphp?
I actually dont want to wait for 1 second.
Is it possible to ask periodically each 5 ms?
The blocking list operations only allow timeouts in seconds. You can use https://redis.io/commands/lpop and poll of course.
This is what I'm actually doing, but I expected, that BLPOP with timeout will behave same in amphp/redis like in regular blocking Redis
Without any timeout it just blocks indefinitely, just like Redis does. We don't have any custom logic.
@HonzaMac Could you elaborate on the difference between "regular blocking Redis" and the current behavior? I don't think there's one. Will reopen in case something needs to be changed.