PHPackages                             yii1tech/psr-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/psr-cache

ActiveLibrary[Caching](/categories/caching)

yii1tech/psr-cache
==================

Provides support for PSR-6 compatible cache for Yii1 application

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

Since Aug 9Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (2)Used By (0)

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

Yii1 PSR-6 Cache Extension
==========================

[](#yii1-psr-6-cache-extension)

This extension allows integration with PSR-6 compatible cache for Yii1.

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

[![Latest Stable Version](https://camo.githubusercontent.com/b8b70f0c22422f59444ec1d96eab057f02090cc130df92d1a1567c396c6a8fc2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79696931746563682f7073722d63616368652e737667)](https://packagist.org/packages/yii1tech/psr-cache)[![Total Downloads](https://camo.githubusercontent.com/d57ae45f0e2c4364fbc3ce93e4be5e3ba359683438828411a85d797261a756c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79696931746563682f7073722d63616368652e737667)](https://packagist.org/packages/yii1tech/psr-cache)[![Build Status](https://github.com/yii1tech/psr-cache/workflows/build/badge.svg)](https://github.com/yii1tech/psr-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/psr-cache

```

or add

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

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

Usage
-----

[](#usage)

This extension allows integration with [PSR-6](https://www.php-fig.org/psr/psr-6/) compatible cache for Yii1. It provides several instruments for that. Please choose the one suitable for your particular needs.

### Wrap PSR cache pool into Yii cache

[](#wrap-psr-cache-pool-into-yii-cache-)

The most common use case for PSR cache involvement into Yii application is usage of 3rd party cache library. This can be achieved using `\yii1tech\psr\cache\Cache` as Yii cache component.

Application configuration example:

```
