Skip to content

Commit 6cbdea7

Browse files
committed
- adds client() method
1 parent 0c06619 commit 6cbdea7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

CacheItemPool.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,16 @@ public function saveDeferred(CacheItemInterface $item): bool
122122

123123
return true;
124124
}
125+
126+
/**
127+
* Returns the instance of the underlying cache client.
128+
*
129+
* This method is not part of the PSR-6.
130+
*
131+
* @return Cache
132+
*/
133+
public function client(): Cache
134+
{
135+
return $this->client;
136+
}
125137
}

0 commit comments

Comments
 (0)