I tried to use the blpop function on Redis.
auto message = m_db.blpop("test", 0L);
and the only response I have is "test".
The methode definition is
T blpop(T = string)(string key, long seconds) if(isValidRedisValueReturn!T) { return request!T("BLPOP", key, seconds); }
but according to Redis documentation BLPOP return an Array.
Return value
Array reply: specifically:
A nil multi-bulk when no element could be popped and the timeout expired.
A two-element multi-bulk with the first element being the name of the key where an element was popped and the second element being the value of the popped element.
Shouldn't blpop definition be something like this ?RedisReply!T blpop(T = string)(string key, long seconds) if(isValidRedisValueReturn!T) { return request!T("BLPOP", key, seconds); }