> ## Documentation Index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# PERSIST

> Remove any timeout set on the key.

## Arguments

<ParamField body="key" type="str" required>
  The key to persist
</ParamField>

## Response

<ResponseField type="bool">
  `True` if the timeout was set
</ResponseField>

<RequestExample>
  ```py Example theme={"system"}
  redis.set("key1", "Hello")
  redis.expire("key1", 10)

  assert redis.ttl("key1") == 10

  redis.persist("key1")

  assert redis.ttl("key1") == -1
  ```
</RequestExample>


## Related topics

- [PERSIST](/docs/redis/sdks/ts/commands/generic/persist.md)
- [TanStack AI Chat Persistance](/docs/redis/tutorials/tanstack_chat_persistence.md)
- [Frequently Asked Questions](/docs/redis/help/faq.md)
- [Agent Memory with Redis Search](/docs/redis/tutorials/agent_memory.md)
- [Cloudflare Workers](/docs/redis/quickstarts/cloudflareworkers.md)
