Better implementation for BRPOP/BLPOP in the non blocking case.

This commit is contained in:
antirez
2012-02-29 14:41:57 +01:00
parent cd8bdea31b
commit c1db214eeb
3 changed files with 16 additions and 28 deletions

View File

@ -852,6 +852,8 @@ void createSharedObjects(void) {
shared.psubscribebulk = createStringObject("$10\r\npsubscribe\r\n",17);
shared.punsubscribebulk = createStringObject("$12\r\npunsubscribe\r\n",19);
shared.del = createStringObject("DEL",3);
shared.rpop = createStringObject("RPOP",4);
shared.lpop = createStringObject("LPOP",4);
for (j = 0; j < REDIS_SHARED_INTEGERS; j++) {
shared.integers[j] = createObject(REDIS_STRING,(void*)(long)j);
shared.integers[j]->encoding = REDIS_ENCODING_INT;