redisExpireAt: Set a timeout on the specified key.

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

View source: R/allValCMD.R

Description

Set a timeout on the specified key, after which time the key and corresponding value will be deleted.

Usage

1
2

Arguments

key

The character key on which to set the timeout.

time

The UNIX time of expiration in seconds or milliseconds.

Details

Operations that modify value(s) corresponding to a key subsequent to the redisExpireAt function clear the timeout, removing the expiration. The redisExpireAt function can't set a new timeout value once a timeout has been set on a key.

Value

Boolean TRUE if the timeout command was successful, FALSE otherwise.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

redisExpire

Examples

1
2
3
4
5
6
## Not run: 
redisConnect()
redisLPush('x',runif(5))
redisExpireAt('x', 1266209144)

## End(Not run)

rredis documentation built on May 2, 2019, 2:02 p.m.