1 start_server
{tags
{"expire"}} {
2 test
{EXPIRE
- don't
set timeouts multiple times
} {
11 test
{EXPIRE
- It should be still possible to
read 'x'
} {
15 test
{EXPIRE
- After
6 seconds the key should no longer be here
} {
17 list [r get x
] [r exists x
]
20 test
{EXPIRE
- Delete on write policy
} {
28 test
{EXPIREAT
- Check
for EXPIRE alike behavior
} {
31 r expireat x
[expr [clock seconds
]+15]
35 test
{SETEX
- Set
+ Expire combo operation. Check
for TTL
} {
40 test
{SETEX
- Check value
} {
44 test
{SETEX
- Overwrite old key
} {
49 test
{SETEX
- Wait
for the key to expire
} {
54 test
{SETEX
- Wrong
time parameter
} {
55 catch {r setex z
-10 foo
} e