aivchen / yii2-simple-cache-adapter
PSR-16 Yii2 Adapter
Installs: 539
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 5
Type:yii2-extension
Requires
- php: ^8.2
- psr/simple-cache: ^3.0
- yiisoft/yii2: ^2.0.49
Requires (Dev)
- ergebnis/composer-normalize: ^2.28
- friendsofphp/php-cs-fixer: ^3.38
- phpunit/phpunit: ^10.4
- psalm/plugin-symfony: ^5.1
- rector/rector: ^0.18.10
- vimeo/psalm: ^5.15
- yidas/yii2-composer-bower-skip: ^2.0
This package is auto-updated.
Last update: 2024-10-23 01:22:06 UTC
README
An Adapter for SimpleCache (PSR-16) to Yii2 cache
This library originally developed by devonliu02 and Wearesho Team
Installation
composer require aivchen/yii2-simple-cache-adapter
Usage
<?php use Aivchen\SimpleCache; $adapter = new SimpleCache\Adapter; // will use \Yii::$app->cache by default $customAdapter = new SimpleCache\Adapter([ 'cache' => [ 'class' => \yii\caching\ArrayCache::class, // or your custom \yii\caching\CacheInterface implementation ], ]);