Home
last modified time | relevance | path

Searched refs:nx (Results 1 – 5 of 5) sorted by relevance

/redis-3.2.3/src/
H A Dt_string.c303 void msetGenericCommand(client *c, int nx) { in msetGenericCommand() argument
312 if (nx) { in msetGenericCommand()
330 addReply(c, nx ? shared.cone : shared.ok); in msetGenericCommand()
H A Ddb.c731 void renameGenericCommand(client *c, int nx) { in renameGenericCommand() argument
744 addReply(c,nx ? shared.czero : shared.ok); in renameGenericCommand()
751 if (nx) { in renameGenericCommand()
770 addReply(c,nx ? shared.cone : shared.ok); in renameGenericCommand()
H A Dt_zset.c1243 int nx = (flags & ZADD_NX) != 0; in zaddGenericCommand() local
1257 if (nx && xx) { in zaddGenericCommand()
1306 if (nx) continue; in zaddGenericCommand()
1344 if (nx) continue; in zaddGenericCommand()
/redis-3.2.3/tests/unit/type/
H A Dstring.tcl384 set v1 [r set foo 1 nx]
385 set v2 [r set foo 2 nx]
H A Dzset.tcl83 catch {r zadd ztmp xx nx 10 x} err
89 r zadd ztmp nx 10 x 20 y 30 z
96 assert {[r zadd ztmp nx 11 x 21 y 100 a 200 b] == 2}