mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
added tests for vararg DEL
This commit is contained in:
parent
5109cdff83
commit
cc582a7708
@ -65,6 +65,13 @@ proc main {server port} {
|
|||||||
$r get x
|
$r get x
|
||||||
} {}
|
} {}
|
||||||
|
|
||||||
|
test {Vararg DEL} {
|
||||||
|
$r set foo1 a
|
||||||
|
$r set foo2 b
|
||||||
|
$r set foo3 c
|
||||||
|
list [$r del foo1 foo2 foo3 foo4] [$r mget foo1 foo2 foo3]
|
||||||
|
} {3 {{} {} {}}}
|
||||||
|
|
||||||
test {KEYS with pattern} {
|
test {KEYS with pattern} {
|
||||||
foreach key {key_x key_y key_z foo_a foo_b foo_c} {
|
foreach key {key_x key_y key_z foo_a foo_b foo_c} {
|
||||||
$r set $key hello
|
$r set $key hello
|
||||||
|
Loading…
x
Reference in New Issue
Block a user