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

redisExpireAt

Set a timeout on the specified key.


Description

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

Usage

redisExpireAt(key, time)
redisPexpireAt(key, time)

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

Examples

## Not run: 
redisConnect()
redisLPush('x',runif(5))
redisExpireAt('x', 1266209144)

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