GETEX

    • EX seconds — Set the specified expire time, in seconds.
    • PX milliseconds — Set the specified expire time, in milliseconds.
    • EXAT timestamp-seconds — Set the specified Unix time at which the key will expire, in seconds.
    • — Remove the time to live associated with the key.
    1. dragonfly> SET mykey "Hello"
    2. "OK"
    3. "Hello"
    4. dragonfly> TTL mykey
    5. (integer) -1
    6. "Hello"
    7. dragonfly> TTL mykey
    8. (integer) 60