Set a timeout on the specified key.
Set a timeout on the specified key, after which the key and corresponding value will be deleted.
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
## Not run: redisConnect() redisLPush('x',runif(5)) redisExpire('x', 3) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.