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'
} {
16 test
{EXPIRE
- After
6 seconds the key should no longer be here
} {
18 list [r get x
] [r exists x
]
22 test
{EXPIRE
- Delete on write policy
} {
30 test
{EXPIREAT
- Check
for EXPIRE alike behavior
} {
33 r expireat x
[expr [clock seconds
]+15]
37 test
{SETEX
- Set
+ Expire combo operation. Check
for TTL
} {
42 test
{SETEX
- Check value
} {
46 test
{SETEX
- Overwrite old key
} {
52 test
{SETEX
- Wait
for the key to expire
} {
58 test
{SETEX
- Wrong
time parameter
} {
59 catch {r setex z
-10 foo
} e