Skip to main content
Documentation
API Reference
Search
⌘K
Ask AI
⌘I
Discord
Blog
Twitter
Console
Redis
/
/
SDKs
/
Python
/
Commands
/
Generic
TOUCH
Alters the last access time of one or more keys
1 min read
Copy as Markdown
Arguments
#
keys
*List[str]
required
#
One or more keys.
Response
#
SCAN
TTL
Example
redis.touch(
"key1"
,
"key2"
,
"key3"
)