> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-dx-3081-agentkit-tanstack-ai-backends.mintlify.site/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={null}
  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](/redis/commands/generic/persist.md)
- [TanStack AI Chat Persistance](/redis/tutorials/tanstack_chat_persistence.md)
- [TanStack AI Persistence, Resumable Streams & Memory with Redis](/redis/sdks/agentkit/tanstack-ai.md)
- [Frequently Asked Questions](/redis/help/faq.md)
