本文整理匯總了PHP中Resque::redisDatabase方法的典型用法代碼示例。如果您正苦於以下問題:PHP Resque::redisDatabase方法的具體用法?PHP Resque::redisDatabase怎麽用?PHP Resque::redisDatabase使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Resque
的用法示例。
在下文中一共展示了Resque::redisDatabase方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setBackend
/**
* 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, or
* a nested array of servers with host/port pairs.
* @param int $database
*/
public static function setBackend($server, $database = 0, $password = '')
{
self::$redisServer = $server;
self::$redisDatabase = $database;
self::$redisPassword = $password;
self::$redis = null;
}
示例2: setBackend
/**
* 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, or
* a nested array of servers with host/port pairs.
* @param int $database
*/
public static function setBackend($server, $database = 0, $namespace = 'resque')
{
self::$redisServer = $server;
self::$redisDatabase = $database;
self::$redis = null;
self::$namespace = $namespace;
}
示例3: setBackend
/**
* Given a host/port combination separated by a colon, set it as
* the redis server that Resque will talk to.
*
* 設置Redis的相關配置,$server:'127.0.0.1:6379'
* @param mixed $server Host/port combination separated by a colon, or
* a nested array of servers with host/port pairs.
* @param int $database
*/
public static function setBackend($server, $database = 0)
{
self::$redisServer = $server;
self::$redisDatabase = $database;
self::$redis = null;
}