R/redisSETNX.R

#'@title Set the value of a key, only if the key does not exist
#'@export
redisSETNX <- function( key,  value, Rc = NULL) {
	if (is.null(Rc)) Rc <- getOption("Rhiredis.connect")
	cmd <- "SETNX"
	redisCommand(Rc, cmd, list(key, value))
}
wush978/Rhiredis documentation built on May 4, 2019, 12:01 p.m.