当前位置: 首页>>代码示例>>PHP>>正文


PHP Resque::redisDatabase方法代码示例

本文整理汇总了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;
 }
开发者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::redisDatabase方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。