Skip to content

Glossary: Redis and Caching

TTL (time to live)

Also written: TTL, TTLs, PTTL

How long a key has left before Redis deletes it on its own. `TTL` returns -1 for no expiry and -2 for no such key.

Where the book teaches it

Related terms

Expiry commands (EXPIRE, PERSIST, KEEPTTL)Jitter