军事前沿

Whoops! There was an error.

时间:2016-06-03 15:32 责任编辑:军事新闻 来源:赛马车友会 点击: 次

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Connection/AbstractConnection.php

* Helper method to handle connection errors. * * @param string $message Error message. * @param int $code Error code. */ protected function onConnectionError($message, $code = null) { CommunicationException::handle(new ConnectionException($this, "$message [{$this->parameters->scheme}://{$this->getIdentifier()}]", $code)); }

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Connection/StreamConnection.php

$flags |= STREAM_CLIENT_PERSISTENT; $uri .= strpos($path = $parameters->path, '/') === 0 必修 $path : "/$path"; } $resource = @stream_socket_client($uri, $errno, $errstr, $parameters->timeout, $flags); if (!$resource) { $this->onConnectionError(trim($errstr), $errno); }

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Connection/StreamConnection.php

* {@inheritdoc} */ protected function createResource() { $parameters = $this->parameters; $initializer = "{$parameters->scheme}StreamInitializer"; return $this->$initializer($parameters); }

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Connection/AbstractConnection.php

*/ public function connect() { if ($this->isConnected()) { throw new ClientException('Connection already estabilished'); } $this->resource = $this->createResource(); }

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Connection/StreamConnection.php

} /** * {@inheritdoc} */ public function connect() { parent::connect(); if ($this->initCmds) {

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Connection/AbstractConnection.php

*/ public function getResource() { if (isset($this->resource)) { return $this->resource; } $this->connect(); return $this->resource;

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Connection/StreamConnection.php

* Performs a write operation on the stream of the buffer containing a * command serialized with the Redis wire protocol. * * @param string $buffer Redis wire protocol representation of a command. */ protected function writeBytes($buffer) { $socket = $this->getResource(); while (($length = strlen($buffer)) > 0) {

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Connection/StreamConnection.php

for ($i = 0, $reqlen--; $i < $reqlen; $i++) { $argument = $arguments[$i]; $arglen = strlen($argument); $buffer .= "\${$arglen}\r\n{$argument}\r\n"; } $this->writeBytes($buffer); }

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Connection/AbstractConnection.php

} /** * {@inheritdoc} */ public function executeCommand(CommandInterface $command) { $this->writeCommand($command); return $this->readResponse($command);

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Client.php

} /** * {@inheritdoc} */ public function executeCommand(CommandInterface $command) { $response = $this->connection->executeCommand($command); if ($response instanceof ResponseObjectInterface) {

open: /home/wwwroot/qulishi/vendor/predis/predis/lib/Predis/Client.php

* @param string $commandID Command ID. * @param array $arguments Arguments for the command. * @return mixed */ public function __call($commandID, $arguments) { $command = $this->createCommand($commandID, $arguments); $response = $this->executeCommand($command); return $response;

open: /home/wwwroot/qulishi/app/services/Rds.php

public static function get($key) { self::init(); return self::$redis->get($key); } public static function exists($key) { self::init(); return self::$redis->exists($key); }

open: /home/wwwroot/qulishi/app/services/Rds.php

public static function get($key) { self::init(); return self::$redis->get($key); } public static function exists($key) { self::init(); return self::$redis->exists($key); }

open: /home/wwwroot/qulishi/app/models/News.php

* @param $num * @param $order * @param $signal * @return mixed */ public static function getCategoryNews($cid, $type = 'classid', $num = 8, $orderBy = 'id', $signal = '=', $order = 'desc') { $redisKey = 'qls_pc_news_' . $orderBy . '_' . $order . '_' . $type . '_' . $cid . '_' . $num . '_' . $signal; if (Rds::exists($redisKey)) return json_decode(Rds::get($redisKey)); $data = News::where($type, $signal, $cid) ->select('id', 'newstitle', 'minititle', 'newspic', 'classid', 'nclassid', 'AddTime', 'hits', 'content')

更多关于“Whoops”的新闻阅读:
服务信息
德“生育农

德“生育农

德“生育农

德“生育农

盘点清朝皇后画像中的绝色皇后

盘点清朝皇后画像中的绝色皇后

旧上?!笆竺隆钡娜松? src=

旧上?!笆竺隆钡娜松?/A>

民国女子眼中的美男子:谁是最佳理想型

民国女子眼中的美男子:谁是最佳理想型

揭秘50年代台绝密特种兵:武汉部队

揭秘50年代台绝密特种兵:武汉部队