wearesho-team/yii2-simple-cache-adapter

Installs: 13 682

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 5

Type:yii2-extension

1.1.0 2020-06-17 00:24 UTC

This package is auto-updated.

Last update: 2024-10-17 09:26:31 UTC


README

Latest Stable Version Total Downloads Build Status codecov

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
    ],
]);

Contributors

License

MIT