R/redisLPUSHX.R

#'@title Prepend a value to a list, only if the list exists
#'@export
redisLPUSHX <- function( key,  value, Rc = NULL) {
	if (is.null(Rc)) Rc <- getOption("Rhiredis.connect")
	cmd <- "LPUSHX"
	redisCommand(Rc, cmd, list(key, value))
}
wush978/Rhiredis documentation built on May 4, 2019, 12:01 p.m.