• antirez's avatar
    Add per-db average TTL information in INFO output. · fa48b1fa
    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.
    fa48b1fa
redis.c 114 KB