TOUCH

TOUCH

TOUCH 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

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

Examples #

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

Redict logo courtesy of @janWilejan, CC-BY-SA-4.0. Download SVG ⤑

Portions of this website courtesy of Salvatore Sanfilippo, CC-BY-SA-4.0.