]> git.saurik.com Git - redis.git/blobdiff - src/redis.c
Better implementation for BRPOP/BLPOP in the non blocking case.
[redis.git] / src / redis.c
index 78067d3106343484cedcd557fc8dfc3e9ff0637f..64df9073bc52912e3c5a69c254ea8f2f66438eef 100644 (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;