• antirez's avatar
    Add per-db average TTL information in INFO output. · 487e6655
    antirez authored
    Example:
    
    db0:keys=221913,expires=221913,avg_ttl=655
    
    The algorithm uses a running average with only two samples (current and
    previous). Keys found to be expired are considered at TTL zero even if
    the actual TTL can be negative.
    
    The TTL is reported in milliseconds.
    487e6655
redis.h 51.3 KB