SPOP implemented. Hash table resizing for Sets and Expires too. Changed the resize policy to play better with RANDOMKEY and SPOP.

This commit is contained in:
antirez
2009-06-08 23:51:35 +02:00
parent d76412d1d1
commit 12fea92890
6 changed files with 61 additions and 12 deletions

View File

@ -79,6 +79,7 @@ static struct redisCommand cmdTable[] = {
{"smove",4,REDIS_CMD_BULK},
{"sismember",3,REDIS_CMD_BULK},
{"scard",2,REDIS_CMD_INLINE},
{"spop",2,REDIS_CMD_INLINE},
{"sinter",-2,REDIS_CMD_INLINE},
{"sinterstore",-3,REDIS_CMD_INLINE},
{"sunion",-2,REDIS_CMD_INLINE},