<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Contracts\Cache; use Psr\Cache\CacheItemInterface; /** * Computes and returns the cached value of an item. * * @author Nicolas Grekas <p@tchwork.com> * * @template T */ interface CallbackInterface { /** * @param CacheItemInterface|ItemInterface $item The item to compute the value for * @param bool &$save Should be set to false when the value should not be saved in the pool * * @return T The computed value for the passed item */ public function __invoke(CacheItemInterface $item, bool &$save): mixed; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
CHANGELOG.md | File | 157 B | 0644 |
|
CacheInterface.php | File | 2.25 KB | 0644 |
|
CacheTrait.php | File | 2.41 KB | 0644 |
|
CallbackInterface.php | File | 832 B | 0644 |
|
ItemInterface.php | File | 1.75 KB | 0644 |
|
LICENSE | File | 1.04 KB | 0644 |
|
README.md | File | 326 B | 0644 |
|
TagAwareCacheInterface.php | File | 1011 B | 0644 |
|
composer.json | File | 1013 B | 0644 |
|