Skip to content

Commit

Permalink
support for set ex/px/nx/xx for redis 2.6.12 and up
Browse files Browse the repository at this point in the history
  • Loading branch information
youurayy committed Jun 2, 2013
1 parent a0a6acf commit 5f3f093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion notes/redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
+-------------------+------------+---------------------------------------------------------------------------------------------------------------------+
| PSETEX | Yes | PSETEX key milliseconds value |
+-------------------+------------+---------------------------------------------------------------------------------------------------------------------+
| SET | Yes | SET key value |
| SET | Yes | SET key value [EX seconds] [PX milliseconds] [NX|XX] |
+-------------------+------------+---------------------------------------------------------------------------------------------------------------------+
| SETBIT | Yes | SETBIT key offset value |
+-------------------+------------+---------------------------------------------------------------------------------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion src/proto/nc_redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ redis_arg1(struct msg *r)
case MSG_REQ_REDIS_GETSET:
case MSG_REQ_REDIS_INCRBY:
case MSG_REQ_REDIS_INCRBYFLOAT:
case MSG_REQ_REDIS_SET:
case MSG_REQ_REDIS_SETNX:

case MSG_REQ_REDIS_HEXISTS:
Expand Down Expand Up @@ -178,6 +177,7 @@ redis_argn(struct msg *r)
switch (r->type) {
case MSG_REQ_REDIS_BITCOUNT:

case MSG_REQ_REDIS_SET:
case MSG_REQ_REDIS_HDEL:
case MSG_REQ_REDIS_HMGET:
case MSG_REQ_REDIS_HMSET:
Expand Down

0 comments on commit 5f3f093

Please sign in to comment.