Add SETRANGE command implementation and tests

This commit is contained in:
Pieter Noordhuis
2010-12-14 14:20:51 +01:00
parent 7ecd4644e7
commit 9f9e1ceaa0
4 changed files with 191 additions and 0 deletions

View File

@ -80,6 +80,7 @@ struct redisCommand readonlyCommandTable[] = {
{"exists",existsCommand,2,0,NULL,1,1,1},
{"setbit",setbitCommand,4,REDIS_CMD_DENYOOM,NULL,1,1,1},
{"getbit",getbitCommand,3,0,NULL,1,1,1},
{"setrange",setrangeCommand,4,REDIS_CMD_DENYOOM,NULL,1,1,1},
{"incr",incrCommand,2,REDIS_CMD_DENYOOM,NULL,1,1,1},
{"decr",decrCommand,2,REDIS_CMD_DENYOOM,NULL,1,1,1},
{"mget",mgetCommand,-2,0,NULL,1,-1,1},