當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Resque::redisServer方法代碼示例

本文整理匯總了PHP中Resque::redisServer方法的典型用法代碼示例。如果您正苦於以下問題:PHP Resque::redisServer方法的具體用法?PHP Resque::redisServer怎麽用?PHP Resque::redisServer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Resque的用法示例。


在下文中一共展示了Resque::redisServer方法的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;
 }
開發者ID:rolies106,項目名稱:yii2resque,代碼行數:15,代碼來源:Resque.php

示例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;
 }
開發者ID:klimis,項目名稱:php-edge,代碼行數:15,代碼來源:Resque.php

示例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;
 }
開發者ID:CraryPrimitiveMan,項目名稱:php-resque-1.2-annotated,代碼行數:15,代碼來源:Resque.php


注:本文中的Resque::redisServer方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。