• ny0312's avatar
    Always replicate time-to-live(TTL) as absolute timestamps in milliseconds (#8474) · 53d1acd5
    ny0312 authored
    Till now, on replica full-sync we used to transfer absolute time for TTL,
    however when a command arrived (EXPIRE or EXPIREAT),
    we used to propagate it as is to replicas (possibly with relative time),
    but always translate it to EXPIREAT (absolute time) to AOF.
    
    This commit changes that and will always use absolute time for propagation.
    see discussion in #8433
    
    Furthermore, we Introduce new commands: `EXPIRETIME/PEXPIRETIME`
    that allow extracting the absolute TTL time from a key.
    53d1acd5
server.c 233 KB