wearesho-team / yii2-simple-cache-adapter
Installs: 14 044
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 5
Type:yii2-extension
Requires
- php: >=7.4
- psr/simple-cache: ^1.0
- yiisoft/yii2: ^2.0.35
Requires (Dev)
- cache/integration-tests: ^0.16.0
- phpunit/phpunit: ^9.2
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2024-12-17 09:50:29 UTC
README
An Adapter for SimpleCache (PSR-16) to Yii2 cache
This library originally developed by devonliu02, now maintained by Wearesho Team
Installation
composer require wearesho-team/yii2-simple-cache-adapter
Usage
<?php use Wearesho\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 ], ]);