コード例 #1
0
ファイル: Queue.php プロジェクト: heureka/php-rq
 /**
  * @inheritdoc
  */
 public function __construct(ClientInterface $redis, $name, $options = [], Time $time = null)
 {
     parent::__construct($redis, $name, $options, $time);
     $this->clientID = sprintf('%s[%d][%d]', gethostname(), getmypid(), $this->time->now());
 }
コード例 #2
0
ファイル: UniqueQueue.php プロジェクト: jannavratil/php-rq
 /**
  * @inheritdoc
  */
 public function __construct(ClientInterface $redis, $name, $options = [])
 {
     parent::__construct($redis, $name, $options);
     $this->clientID = sprintf('%s[%d][%d]', gethostname(), getmypid(), time());
 }