@@ -17,11 +17,11 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | use CouchbaseCluster as CouchbaseClient; |
| 19 | 19 | use Phpfastcache\Core\Pool\{ |
| 20 | - DriverBaseTrait, ExtendedCacheItemPoolInterface |
|
| 20 | + DriverBaseTrait, ExtendedCacheItemPoolInterface |
|
| 21 | 21 | }; |
| 22 | 22 | use Phpfastcache\Entities\DriverStatistic; |
| 23 | 23 | use Phpfastcache\Exceptions\{ |
| 24 | - PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException |
|
| 24 | + PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException |
|
| 25 | 25 | }; |
| 26 | 26 | use Psr\Cache\CacheItemInterface; |
| 27 | 27 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | |
| 74 | 74 | $this->instance = new CouchbaseClient( |
| 75 | - 'couchbase://' . $clientConfig->getHost() . ($clientConfig->getPort() ? ":{$clientConfig->getPort()}" : '') |
|
| 75 | + 'couchbase://' . $clientConfig->getHost() . ($clientConfig->getPort() ? ":{$clientConfig->getPort()}" : '') |
|
| 76 | 76 | ); |
| 77 | 77 | |
| 78 | 78 | $this->instance->authenticate($authenticator); |
@@ -114,9 +114,9 @@ discard block |
||
| 114 | 114 | if ($item instanceof Item) { |
| 115 | 115 | try { |
| 116 | 116 | return (bool)$this->getBucket()->upsert( |
| 117 | - $item->getEncodedKey(), |
|
| 118 | - $this->encode($this->driverPreWrap($item)), |
|
| 119 | - ['expiry' => $item->getTtl()] |
|
| 117 | + $item->getEncodedKey(), |
|
| 118 | + $this->encode($this->driverPreWrap($item)), |
|
| 119 | + ['expiry' => $item->getTtl()] |
|
| 120 | 120 | ); |
| 121 | 121 | } catch (\CouchbaseException $e) { |
| 122 | 122 | return false; |
@@ -192,10 +192,10 @@ discard block |
||
| 192 | 192 | $info = $this->getBucket()->manager()->info(); |
| 193 | 193 | |
| 194 | 194 | return (new DriverStatistic()) |
| 195 | - ->setSize($info[ 'basicStats' ][ 'diskUsed' ]) |
|
| 196 | - ->setRawData($info) |
|
| 197 | - ->setData(\implode(', ', \array_keys($this->itemInstances))) |
|
| 198 | - ->setInfo('CouchBase version ' . $info[ 'nodes' ][ 0 ][ 'version' ] . ', Uptime (in days): ' . round($info[ 'nodes' ][ 0 ][ 'uptime' ] / 86400, |
|
| 199 | - 1) . "\n For more information see RawData."); |
|
| 195 | + ->setSize($info[ 'basicStats' ][ 'diskUsed' ]) |
|
| 196 | + ->setRawData($info) |
|
| 197 | + ->setData(\implode(', ', \array_keys($this->itemInstances))) |
|
| 198 | + ->setInfo('CouchBase version ' . $info[ 'nodes' ][ 0 ][ 'version' ] . ', Uptime (in days): ' . round($info[ 'nodes' ][ 0 ][ 'uptime' ] / 86400, |
|
| 199 | + 1) . "\n For more information see RawData."); |
|
| 200 | 200 | } |
| 201 | 201 | } |
| 202 | 202 | \ No newline at end of file |