PHPackages                             yii1tech/tagged-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. yii1tech/tagged-cache

ActiveLibrary[Caching](/categories/caching)

yii1tech/tagged-cache
=====================

Provides support for tag aware cache for Yii1 application

1.0.0(2y ago)32.3k—0%1BSD-3-ClausePHPPHP &gt;=7.1

Since Aug 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yii1tech/tagged-cache)[ Packagist](https://packagist.org/packages/yii1tech/tagged-cache)[ GitHub Sponsors](https://github.com/klimov-paul)[ Patreon](https://www.patreon.com/klimov_paul)[ RSS](/packages/yii1tech-tagged-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (1)

 [ ![](https://avatars.githubusercontent.com/u/134691944) ](https://github.com/yii1tech)

Yii1 Tag Aware Cache Extension
==============================

[](#yii1-tag-aware-cache-extension)

This extension provides tag aware cache for Yii1.

For license information check the [LICENSE](LICENSE.md)-file.

[![Latest Stable Version](https://camo.githubusercontent.com/6017d81b89caa45f9747407b635d23eff0e910b80ae4438c0e3706d1a9d751f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79696931746563682f7461676765642d63616368652e737667)](https://packagist.org/packages/yii1tech/tagged-cache)[![Total Downloads](https://camo.githubusercontent.com/4135f558e4f56617431d67983deb5f8d1ae4e0d25a8a91a26c38132ec90ec64f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79696931746563682f7461676765642d63616368652e737667)](https://packagist.org/packages/yii1tech/tagged-cache)[![Build Status](https://github.com/yii1tech/tagged-cache/workflows/build/badge.svg)](https://github.com/yii1tech/tagged-cache/actions)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yii1tech/tagged-cache

```

or add

```
"yii1tech/tagged-cache": "*"
```

to the "require" section of your composer.json.

Usage
-----

[](#usage)

This extension provides tag aware cache for Yii1. Tags allow you to organize cache items into groups, each of which can be cleared separately. This extension introduces `\yii1tech\cache\tagged\TagAwareCacheContract` interface, which extends Yii standard `\ICache`, adding extra parameter for the tags specification on saving data to the cache.

Application configuration example:

```
