Typescript
@upstash/redis
Commands
Auth
Bitmap
Generic
Hash
Json
List
PubSub
Scripts
Server
Set
Sorted Set
Stream
String
Transactions
@upstash/query
@upstash/edge-flags
@upstash/ratelimit
Python
Terraform
Pulumi
CLI
await redis.persist(key);
The key to persist
1 if the timeout was removed, 0 if key does not exist or does not have an associated timeout.
1
0
key
Was this page helpful?