Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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.3k 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
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...