/man/redisExpireAt.Rd
http://github.com/bwlewis/rredis · Unknown · 40 lines · 40 code · 0 blank · 0 comment · 0 complexity · fbaf41952d621ed895268ca04b4552f2 MD5 · raw file
- \name{redisExpireAt}
- \alias{redisExpireAt}
- \alias{redisPexpireAt}
- \title{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{
- \item{key}{The character key on which to set the timeout.}
- \item{time}{The UNIX time of expiration in seconds or milliseconds.}
- }
- \details{Operations that modify value(s) corresponding to a key subsequent
- to the \code{redisExpireAt} function clear the timeout, removing the expiration.
- The \code{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.
- }
- \references{
- http://redis.io/commands
- }
- \author{
- B. W. Lewis
- }
- \seealso{
- \code{\link{redisExpire}}
- }
- \examples{
- \dontrun{
- redisConnect()
- redisLPush('x',runif(5))
- redisExpireAt('x', 1266209144)
- }
- }