我运行这样的命令:
del dict
echo "log: set foo, expire 1"
hset dict key bar
expire dict 1
multi
hset dict key nowatchvalue
debug sleep 1
hget dict key
exec
结果显示:
(integer) 1
"log: set foo, expire 1"
(integer) 1
(integer) 1
OK
QUEUED
QUEUED
QUEUED
1) (integer) 0
2) OK
3) "nowatchvalue"
(1.00s)
既然我没有使用watch,为什么debug命令后
dict
键没有消失?