Learn R Programming

rredis (version 1.7.0)

redisPersist: Clear expiration flags for a key

Description

Clear expiration flags for a key.

Usage

redisPersist(key)

Arguments

key
The (required) character identifier for the value to be looked up.

Value

1 if the timeout was removed, 0 if the key does not exists or does not have a timeout set.

Details

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

References

http://redis.io/commands

See Also

redisTTL, redisExpire

Examples

Run this code
## Not run: 
# redisSet('x',runif(5))
# redisExpire('x',10)
# redisPersist('x')
# ## End(Not run)

Run the code above in your browser using DataLab