TTL

How long a stored item, such as a session, token or cache entry, stays valid before it expires.

In more detail

TTL stands for time to live. Short TTLs limit the damage from a stolen token and keep caches fresh, at the cost of more renewals. In DNS, a TTL of 300 means resolvers may reuse an answer for up to five minutes, so a change takes up to that long to reach everyone. IP packets also carry a TTL, a hop counter that stops packets looping forever.

Examples

The course's vault.get takes ttl=30 seconds and the workload token lives for twenty.
name=www ttl=300 remaining=120 source=cache shows a cached answer with two minutes left.

Related terms

Taught in

References

Certification courses