R/redisEXPIRE.R

#'@title Set a key's time to live in seconds
#'@export
redisExpire <- function( key,  seconds, Rc = NULL) {
	if (is.null(Rc)) Rc <- getOption("Rhiredis.connect")
	cmd <- "EXPIRE"
	redisCommand(Rc, cmd, list(key, seconds))
}
wush978/Rhiredis documentation built on May 4, 2019, 12:01 p.m.