Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

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).

Value

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

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

Examples

## Not run: 
redisSet('x',runif(5))
redisExpire('x',10)
redisPersist('x')

## End(Not run)

rredis

"Redis" Key/Value Database Client

v1.7.0
Apache License (>= 2.0)
Authors
B. W. Lewis
Initial release
2015-07-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.