File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -486,15 +486,15 @@ to be able to invalidate the cache more efficient. One way to achieve that is to
486
486
use cache tags. One or more tags could be added to the cache item. All items with
487
487
the same key could be invalidate with one function call::
488
488
489
- use Symfony\Contracts\Cache\ItemInterface ;
489
+ use Symfony\Contracts\Cache\TagAwareCacheInterface ;
490
490
491
- $value0 = $pool->get('item_0', function (ItemInterface $item) {
491
+ $value0 = $pool->get('item_0', function (TagAwareCacheInterface $item) {
492
492
$item->tag(['foo', 'bar'])
493
493
494
494
return 'debug';
495
495
});
496
496
497
- $value1 = $pool->get('item_1', function (ItemInterface $item) {
497
+ $value1 = $pool->get('item_1', function (TagAwareCacheInterface $item) {
498
498
$item->tag('foo')
499
499
500
500
return 'debug';
You can’t perform that action at this time.
0 commit comments