R/redisRPOPLPUSH.R

#'@title Remove the last element in a list, append it to another list and return it
#'@export
redisRPopLPush <- function( source,  destination, Rc = NULL) {
	if (is.null(Rc)) Rc <- getOption("Rhiredis.connect")
	cmd <- "RPOPLPUSH"
	redisCommand(Rc, cmd, list(source, destination))
}
wush978/Rhiredis documentation built on May 4, 2019, 12:01 p.m.