redisPersist: Clear expiration flags for a key

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/allValCMD.R

Description

Clear expiration flags for a key.

Usage

1

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

redisTTL, redisExpire

Examples

1
2
3
4
5
6
## Not run: 
redisSet('x',runif(5))
redisExpire('x',10)
redisPersist('x')

## End(Not run)

bwlewis/rredis documentation built on Jan. 3, 2022, 4:53 p.m.