| 1 | <?php |
||
| 22 | class CacheConditionalHelper |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var CacheItemPoolInterface |
||
| 26 | */ |
||
| 27 | protected $cacheInstance; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * CachePromise constructor. |
||
| 31 | * @param CacheItemPoolInterface $cacheInstance |
||
| 32 | */ |
||
| 33 | public function __construct(CacheItemPoolInterface $cacheInstance) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $cacheKey |
||
| 40 | * @param callable $callback |
||
| 41 | */ |
||
| 42 | public function get($cacheKey, callable $callback) |
||
| 54 | } |