1 start_server
{tags
{"expire"}} {
2 test
{EXPIRE
- set timeouts multiple times
} {
12 test
{EXPIRE
- It should be still possible to
read 'x'
} {
17 test
{EXPIRE
- After
6 seconds the key should no longer be here
} {
19 list [r get x
] [r exists x
]
23 test
{EXPIRE
- write on expire should work
} {
31 test
{EXPIREAT
- Check
for EXPIRE alike behavior
} {
34 r expireat x
[expr [clock seconds
]+15]
38 test
{SETEX
- Set
+ Expire combo operation. Check
for TTL
} {
43 test
{SETEX
- Check value
} {
47 test
{SETEX
- Overwrite old key
} {
53 test
{SETEX
- Wait
for the key to expire
} {
59 test
{SETEX
- Wrong
time parameter
} {
60 catch {r setex z
-10 foo
} e
64 test
{PERSIST can undo an EXPIRE
} {
67 list [r ttl x
] [r persist x
] [r ttl x
] [r get x
]
70 test
{PERSIST returns
0 against non existing or non volatile keys
} {
72 list [r persist foo
] [r persist nokeyatall
]