PERSIST key

    Time complexity: O(1)

    Remove the existing timeout on , turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated).

    *Examples

    redis> SET mykey "Hello"

    redis> EXPIRE mykey 10

    redis> PERSIST mykey

    redis> TTL mykey

    redis>