cache/tag-interop

Framework interoperable interfaces for tags

Maintainers

Package info

github.com/php-cache/tag-interop

Homepage

pkg:composer/cache/tag-interop

Transparency log

Statistics

Installs: 26 432 394

Dependents: 14

Suggesters: 0

Stars: 105

Open Issues: 0

2.0.0 2026-08-18 14:56 UTC

This package is auto-updated.

Last update: 2026-08-18 15:01:18 UTC


README

Latest Stable Version Software License

This package defines shared interfaces for tagging PSR-6 cache items and invalidating them by tag.

Installation

composer require cache/tag-interop:^2.0

Usage

Tag-aware pools implement TaggableCacheItemPoolInterface. Their items implement TaggableCacheItemInterface.

use Cache\TagInterop\TaggableCacheItemPoolInterface;

function invalidateProducts(TaggableCacheItemPoolInterface $pool): bool
{
    return $pool->invalidateTag('products');
}

Version 2 extends the interfaces from psr/cache 3.

Contributing

Send pull requests to the main repository. Report issues on the GitHub issue tracker.