Searched refs:ttl (Results 1 – 10 of 10) sorted by relevance
| /redis-3.2.3/tests/unit/ |
| H A D | other.tcl | 116 set ttl [r ttl x] 121 set ttl [r ttl x] 150 set ttl [r ttl x] 151 assert {$ttl > 900 && $ttl <= 1000} 152 set ttl [r ttl y] 153 assert {$ttl > 1900 && $ttl <= 2000} 154 set ttl [r ttl z] 156 set ttl [r ttl px] 157 assert {$ttl > 900 && $ttl <= 1000} 158 set ttl [r ttl py] [all …]
|
| H A D | expire.tcl | 5 set v2 [r ttl x] 7 set v4 [r ttl x] 35 r ttl x 40 r ttl x 67 list [r ttl x] [r persist x] [r ttl x] [r get x] 127 set ttl [r ttl x] 128 assert {$ttl > 8 && $ttl <= 10} 134 set ttl [r pttl x] 135 assert {$ttl > 900 && $ttl <= 1000} 141 list [r ttl x] [r pttl x] [all …]
|
| H A D | keyspace.tcl | 140 assert {[r ttl mykey] > 95 && [r ttl mykey] <= 100} 142 assert {[r ttl mykey2] > 95 && [r ttl mykey2] <= 100} 150 assert {[r ttl mykey] == -1 && [r ttl mykey2] > 0} 152 r ttl mykey2 202 assert {[r ttl mykey] == -2} 204 assert {[r ttl mykey] > 0 && [r ttl mykey] <= 100} 215 assert {[r ttl mykey] == -2} 217 assert {[r ttl mykey] == -1}
|
| H A D | dump.tcl | 6 list [r exists foo] [r restore foo 0 $encoded] [r ttl foo] [r get foo] 14 set ttl [r pttl foo] 15 assert {$ttl >= 3000 && $ttl <= 5000} 24 set ttl [r pttl foo] 25 assert {$ttl >= (2569591501-3000) && $ttl <= 2569591501} 92 assert {[$second ttl key] == -1} 153 assert {[$second ttl key] >= 7 && [$second ttl key] <= 10} 177 assert {[$second ttl key] == -1} 198 assert {[$second ttl key] == -1}
|
| H A D | introspection-2.tcl | 5 r ttl foo
|
| /redis-3.2.3/tests/unit/type/ |
| H A D | string.tcl | 400 set ttl [r ttl foo] 401 assert {$ttl <= 10 && $ttl > 5} 407 set ttl [r ttl foo] 408 assert {$ttl <= 10 && $ttl > 5} 414 set ttl [r ttl foo] 415 assert {$ttl <= 10 && $ttl > 5}
|
| /redis-3.2.3/src/ |
| H A D | db.c | 1006 long long expire, ttl = -1; in ttlGenericCommand() local 1017 ttl = expire-mstime(); in ttlGenericCommand() 1018 if (ttl < 0) ttl = 0; in ttlGenericCommand() 1020 if (ttl == -1) { in ttlGenericCommand() 1023 addReplyLongLong(c,output_ms ? ttl : ((ttl+500)/1000)); in ttlGenericCommand()
|
| H A D | cluster.c | 4473 long long ttl; in restoreCommand() local 4495 if (getLongLongFromObjectOrReply(c,c->argv[2],&ttl,NULL) != C_OK) { in restoreCommand() 4497 } else if (ttl < 0) { in restoreCommand() 4522 if (ttl) setExpire(c->db,c->argv[1],mstime()+ttl); in restoreCommand() 4655 long long ttl, expireat; in migrateCommand() local 4670 ttl = 0; in migrateCommand() 4748 ttl = expireat-mstime(); in migrateCommand() 4749 if (ttl < 1) ttl = 1; in migrateCommand() 4760 serverAssertWithInfo(c,NULL,rioWriteBulkLongLong(&cmd,ttl)); in migrateCommand()
|
| H A D | server.c | 849 long long ttl; in activeExpireCycle() local 852 ttl = dictGetSignedIntegerVal(de)-now; in activeExpireCycle() 854 if (ttl > 0) { in activeExpireCycle() 856 ttl_sum += ttl; in activeExpireCycle()
|
| /redis-3.2.3/tests/support/ |
| H A D | cluster.tcl | 33 expire expireat pexpire pexpireat type ttl pttl persist restore
|