Redis touch 命令

TOUCH key [key …]

Alters the last access time of a key(s). A key is ignored if it does not exist.

*返回值

Integer reply: The number of keys that were touched.

*实例

redis>  SET key1 “Hello”
"OK"
redis>  SET key2 “World”
"OK"
redis>  TOUCH key1 key2
(integer) 2
redis>