Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k 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.4k 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

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Jul 12, 2019 in AWS by yuvraj (19.1k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...