May 2018 ยท 1 minute read

This post contains some useful information about working with Redis.

Time units

There are multiple ways to query the TTL in Redis. The unit of time of the returned value can be confusing. Here’s each command and its returned value’s time format:

Also, note that this average value avg_ttl is just an estimate based on random check of keys.