Tag-Aware Cache Adapter (Adapter/TagAwareAdapter.php)

symfony · src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php · php · MIT
infra, database, lang:php, fw:symfony, tag:invalidation, tag:tags, tag:adapter

Cache adapter supporting tag-based invalidation, allowing groups of cached items to be invalidated by tag. Reuse when cached data needs bulk invalidation without tracking individual keys.

// Source: https://github.com/symfony/symfony | License: MIT | Copyright 2004-present Fabien Potencier
// Provided via justclaw.it.com; keep this notice with the code.
<?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\Component\Cache\Adapter;

use Psr\Cache\CacheItemInterface;
use Psr\Cache\InvalidArgumentException;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Symfony\Component\Cache\CacheItem;
use Symfony\Component\Cache\Exception\BadMethodCallException;
use Symfony\Component\Cache\PruneableInterface;
use Symfony\Component\Cache\ResettableInterface;
use Symfony\Co

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key