Home
last modified time | relevance | path

Searched refs:expire (Results 1 – 16 of 16) sorted by relevance

/redis-3.2.3/tests/unit/
H A Dexpire.tcl4 set v1 [r expire x 5]
6 set v3 [r expire x 10]
8 r expire x 2
23 test {EXPIRE - write on expire should work} {
26 r expire x 1000
53 test {SETEX - Wait for the key to expire} {
66 r expire x 50
163 test {Redis should lazy expire keys} {
186 r expire foo 10
194 r expire a 5
[all …]
H A Dkeyspace.tcl139 r expire mykey 100
149 r expire mykey2 100
196 test {MOVE can move key expire metadata as well} {
209 test {MOVE does not create an expire if it does not exist} {
H A Dother.tcl113 r expire x 1000
130 r expire x 1000
H A Ddump.tcl9 test {RESTORE can set an arbitrary expire to the materialized key} {
19 test {RESTORE can set an expire that overflows a 32 bit integer} {
147 $first expire key 10
H A Dmulti.tcl218 r expire x 10
227 r expire x 1
H A Dpubsub.tcl274 r expire foo 1
276 assert_equal {pmessage * __keyspace@9__:foo expire} [$rd1 read]
/redis-3.2.3/src/
H A Dt_string.c67 void setGenericCommand(client *c, int flags, robj *key, robj *val, robj *expire, int unit, robj *ok… in setGenericCommand() argument
70 if (expire) { in setGenericCommand()
71 if (getLongLongFromObjectOrReply(c, expire, &milliseconds, NULL) != C_OK) in setGenericCommand()
88 if (expire) setExpire(c->db,key,mstime()+milliseconds); in setGenericCommand()
90 if (expire) notifyKeyspaceEvent(NOTIFY_GENERIC, in setGenericCommand()
98 robj *expire = NULL; in setCommand() local
122 expire = next; in setCommand()
130 expire = next; in setCommand()
139 setGenericCommand(c,flags,c->argv[1],c->argv[2],expire,unit,NULL,NULL); in setCommand()
H A Ddb.c733 long long expire; in renameGenericCommand() local
749 expire = getExpire(c->db,c->argv[1]); in renameGenericCommand()
761 if (expire != -1) setExpire(c->db,c->argv[2],expire); in renameGenericCommand()
785 long long dbid, expire; in moveCommand() local
819 expire = getExpire(c->db,c->argv[1]); in moveCommand()
827 if (expire != -1) setExpire(dst,c->argv[1],expire); in moveCommand()
1006 long long expire, ttl = -1; in ttlGenericCommand() local
1015 expire = getExpire(c->db,c->argv[1]); in ttlGenericCommand()
1016 if (expire != -1) { in ttlGenericCommand()
1017 ttl = expire-mstime(); in ttlGenericCommand()
H A Drdb.c806 long long expire; in rdbSaveRio() local
809 expire = getExpire(db,&key); in rdbSaveRio()
810 if (rdbSaveKeyValuePair(rdb,&key,o,expire,now) == -1) goto werr; in rdbSaveRio()
H A Dcluster.c1089 int64_t expire = dictGetUnsignedIntegerVal(de); in clusterBlacklistCleanup() local
1091 if (expire < server.unixtime) in clusterBlacklistCleanup()
/redis-3.2.3/tests/integration/
H A Dreplication-3.tcl14 test {MASTER and SLAVE consistency with expire} {
H A Daof.tcl257 r expire x -1
/redis-3.2.3/tests/unit/type/
H A Dstring.tcl76 r expire x 10000
96 r expire x 1
/redis-3.2.3/tests/support/
H A Dutil.tcl170 {*}$r expire [randomKey] [randomInt 2]
H A Dcluster.tcl33 expire expireat pexpire pexpireat type ttl pttl persist restore
/redis-3.2.3/
H A D00-RELEASENOTES1673 the delay there is sometimes between the natural expire of the key