% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sugar.R
\name{rsh}
\alias{rsh}
\title{Syntactic Sugar for Rush Manager Construction}
\usage{
rsh(network_id = NULL, config = NULL)
}
\arguments{
\item{network_id}{(\code{character(1)})\cr
Identifier of the rush network.
Manager and workers must have the same id.
Keys in Redis are prefixed with the instance id.}

\item{config}{(\link[redux:redis_config]{redux::redis_config})\cr
Redis configuration options.
If \code{NULL}, configuration set by \code{\link[=rush_plan]{rush_plan()}} is used.
If \code{rush_plan()} has not been called, the \code{REDIS_URL} environment variable is parsed.
If \code{REDIS_URL} is not set, a default configuration is used.
See \link[redux:redis_config]{redux::redis_config} for details.}
}
\value{
\link{Rush} manager.
}
\description{
Function to construct a \link{Rush} manager.
}
\examples{
if (redux::redis_available()) {
   config_local = redux::redis_config()
   rush = rsh(network_id = "test_network", config = config_local)
   rush
}
}
