touch

TOUCH

TOUCH key [key ...]

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

Return value

Integer reply: The number of keys that were touched.

Examples

redis> SET key1 "Hello" "OK" redis> SET key2 "World" "OK" redis> TOUCH key1 key2 ERR Unknown or disabled command 'TOUCH'

© 2009–2017 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/touch

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部