What's default TTL in Redis?

Vedran Juriša picture Vedran Juriša · Mar 6, 2018 · Viewed 28.1k times · Source

I can't find anywhere online what is default TTL in Redis. I know that I can set TTL for specific SET, but don't know what is default TTL. Can someone tell me what default time to live is in Redis?

Answer

dizzyf picture dizzyf · Mar 6, 2018

There is no default TTL. By default, keys are set to live forever.