触摸

Syntax
TOUCH key [key ...]
Available since:
3.2.1
Time complexity:
O(N) where N is the number of keys that will be touched.
ACL categories:
@keyspace, @read, @fast,

更改一个或多个键的最后访问时间。 如果键不存在,则忽略该键。

示例

SET key1 "Hello" SET key2 "World" TOUCH key1 key2

RESP2/RESP3 回复

Integer reply: the number of touched keys.
RATE THIS PAGE
Back to top ↑