Esempio n. 1
0
 /**
  * Given a host/port combination separated by a colon, set it as
  * the redis server that Resque will talk to.
  *
  * @param mixed $server Host/port combination separated by a colon, DSN-formatted URI, or
  *                      a callable that receives the configured database ID
  *                      and returns a Redis instance, or
  *                      a nested array of servers with host/port pairs.
  * @param int $database
  * @param string $password
  */
 public static function setBackend($server, $database = 0, $password = null)
 {
     self::$redisServer = $server;
     self::$redisDatabase = $database;
     self::$passwrod = $password;
     self::$redis = null;
 }