0 votes
1 view
in AWS by (19.2k points)

When I run the command redis-cli INFO, one of the returned values indicates the avg_ttl. I'm unsure what unit of time this is represented in?

Example:

# Keyspace

db0:keys=706818,expires=228745,avg_ttl=1521990750

1 Answer

0 votes
by (44.6k points)

What do these commands return:

  • the TTL - seconds
  • PTTL - milliseconds
  • avg_ttl - milliseconds

Also, note that the average value avg_ttl is an estimate using the random check of keys

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...