@@ -115,10 +115,10 @@ |
||
115 | 115 | public function getPredisConfigArray(): array |
116 | 116 | { |
117 | 117 | return [ |
118 | - 'host' => $this->getHost(), |
|
119 | - 'port' => $this->getPort(), |
|
120 | - 'password' => $this->getPassword() ?: null, |
|
121 | - 'database' => $this->getDatabase(), |
|
118 | + 'host' => $this->getHost(), |
|
119 | + 'port' => $this->getPort(), |
|
120 | + 'password' => $this->getPassword() ?: null, |
|
121 | + 'database' => $this->getDatabase(), |
|
122 | 122 | ]; |
123 | 123 | } |
124 | 124 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | use Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface}; |
20 | 20 | use Phpfastcache\Entities\DriverStatistic; |
21 | 21 | use Phpfastcache\Exceptions\{ |
22 | - PhpfastcacheInvalidArgumentException, PhpfastcacheDriverException, PhpfastcacheLogicException |
|
22 | + PhpfastcacheInvalidArgumentException, PhpfastcacheDriverException, PhpfastcacheLogicException |
|
23 | 23 | }; |
24 | 24 | use Phpfastcache\Util\ArrayObject; |
25 | 25 | use Predis\Client as PredisClient; |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | |
75 | 75 | if(!empty($this->getConfig()->getPath())){ |
76 | 76 | $this->instance = new PredisClient([ |
77 | - 'scheme' => 'unix', |
|
78 | - 'path' => $this->getConfig()->getPath() |
|
77 | + 'scheme' => 'unix', |
|
78 | + 'path' => $this->getConfig()->getPath() |
|
79 | 79 | ]); |
80 | 80 | }else{ |
81 | 81 | $this->instance = new PredisClient($this->getConfig()->getPredisConfigArray()); |
@@ -188,10 +188,10 @@ discard block |
||
188 | 188 | $date = (isset($info[ 'Server' ][ 'uptime_in_seconds' ]) ? (new \DateTime())->setTimestamp(\time() - $info[ 'Server' ][ 'uptime_in_seconds' ]) : 'unknown date'); |
189 | 189 | |
190 | 190 | return (new DriverStatistic()) |
191 | - ->setData(\implode(', ', \array_keys($this->itemInstances))) |
|
192 | - ->setRawData($info) |
|
193 | - ->setSize((int) $size) |
|
194 | - ->setInfo(\sprintf("The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.", |
|
191 | + ->setData(\implode(', ', \array_keys($this->itemInstances))) |
|
192 | + ->setRawData($info) |
|
193 | + ->setSize((int) $size) |
|
194 | + ->setInfo(\sprintf("The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.", |
|
195 | 195 | $version, $date->format(DATE_RFC2822))); |
196 | 196 | } |
197 | 197 | } |
198 | 198 | \ No newline at end of file |