mirror of
https://github.com/fluencelabs/redis
synced 2025-07-31 16:31:58 +00:00
WATCH will now consider touched keys target of EXPIRE command after the WATCH is performed, but not before
This commit is contained in:
@@ -111,4 +111,25 @@ start_server {tags {"cas"}} {
|
||||
r ping
|
||||
r exec
|
||||
} {PONG}
|
||||
|
||||
test {WATCH will consider touched keys target of EXPIRE} {
|
||||
r del x
|
||||
r set x foo
|
||||
r watch x
|
||||
r expire x 10
|
||||
r multi
|
||||
r ping
|
||||
r exec
|
||||
} {}
|
||||
|
||||
test {WATCH will not consider touched expired keys} {
|
||||
r del x
|
||||
r set x foo
|
||||
r expire x 2
|
||||
r watch x
|
||||
after 3000
|
||||
r multi
|
||||
r ping
|
||||
r exec
|
||||
} {PONG}
|
||||
}
|
||||
|
Reference in New Issue
Block a user