> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-context7-agent-09df3c1c-9c05-4093-9d6e-e4e2644ee98c-5.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# TOUCH

> Alters the last access time of one or more keys

## Arguments

<ParamField body="keys" type="*List[str]" required>
  One or more keys.
</ParamField>

## Response

<ResponseField type="int">
  The number of keys that were touched.
</ResponseField>

<RequestExample>
  ```py Example theme={null}
  redis.touch("key1", "key2", "key3")
  ```
</RequestExample>


## Related topics

- [TOUCH](/redis/commands/generic/touch.md)
- [FCALL](/redis/commands/functions/fcall.md)
- [EVAL](/redis/commands/scripting/eval.md)
- [SCRIPT FLUSH](/redis/commands/scripting/script-flush.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.