R/redisSUBSCRIBE.R

#'@title Listen for messages published to the given channels
#'@export
redisSubscribe <- function( channel, Rc = NULL) {
	if (is.null(Rc)) Rc <- getOption("Rhiredis.connect")
	cmd <- "SUBSCRIBE"
	redisCommand(Rc, cmd, list(channel))
}
wush978/Rhiredis documentation built on May 4, 2019, 12:01 p.m.