Skip to content

Commit 42bc604

Browse files
committed
- adds client() method
1 parent 6cbdea7 commit 42bc604

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CacheItemPool.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Exception;
66
use Psr\Cache\{CacheItemInterface, CacheItemPoolInterface};
7+
use Psr\SimpleCache\CacheInterface;
78
use function Koded\Stdlib\now;
89

910
abstract class CacheItemPool implements CacheItemPoolInterface
@@ -128,10 +129,10 @@ public function saveDeferred(CacheItemInterface $item): bool
128129
*
129130
* This method is not part of the PSR-6.
130131
*
131-
* @return Cache
132+
* @return CacheInterface
132133
*/
133-
public function client(): Cache
134+
public function client(): CacheInterface
134135
{
135-
return $this->client;
136+
return $this->client->client();
136137
}
137138
}

0 commit comments

Comments
 (0)