Description Usage Arguments Details Value Author(s) References See Also Examples
Set a timeout on the specified key, after which the key and corresponding value will be deleted.
1 2 | redisExpire(key, seconds)
redisPexpire(key, milliseconds)
|
key |
The character key on which to set the timeout. |
seconds |
The integer timeout in seconds. |
milliseconds |
The integer timeout in milliseconds. |
Operations that modify value(s) corresponding to a key subsequent
to the redisExpire
function clear the timeout, removing the expiration.
The redisExpire
function can't set a new timeout value once a timeout
has been set on a key.
Boolean TRUE if the timeout command was successful, FALSE otherwise.
B. W. Lewis
http://redis.io/commands
1 2 3 4 5 6 | ## Not run:
redisConnect()
redisLPush('x',runif(5))
redisExpire('x', 3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.