R/redisPSUBSCRIBE.R

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