R/redisMSETNX.R

#'@title Set multiple keys to multiple values, only if none of the keys exist
#'@export
redisMSETNX <- function( key,  value, Rc = NULL) {
	if (is.null(Rc)) Rc <- getOption("Rhiredis.connect")
	cmd <- "MSETNX"
	redisCommand(Rc, cmd, list(key, value))
}
wush978/Rhiredis documentation built on May 4, 2019, 12:01 p.m.