Need Assistance?

support@tutorialshub.in

Expiration, TTL & Eviction Policies

PERSIST & Millisecond Precision (PTTL)

ADVERTISEMENT
Redis Free Lesson
5 min read
ADVERTISEMENT

Remove an expiration timer with PERSIST key, or inspect remaining milliseconds with PTTL key. Note: TTL returns -1 if no expiry is set, and -2 if the key does not exist.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you