rtheunissen / cache
一个基本的缓存接口,支持常见的缓存库适配器
v0.1.0
2015-07-26 08:26 UTC
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.7
This package is auto-updated.
Last update: 2024-08-29 04:19:49 UTC
README
安装
composer require rtheunissen/cache
使用
支持的缓存提供者是: - Doctrine - CacheProvider - Illuminate - Store - Stash - AbstractDriver
创建适配器最简单的方式是使用AdapterFactory。
$cache = AdapterFactory::get($provider);