【文件属性】:
文件名称:easycache:用于Laravel的简单的按需缓存扩展
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-02 04:00:53
PHP
EasyCache
Laravel的一个简单的按需缓存扩展。
类似于paginate()或get()扩展,也允许cache() 。
安装
composer require websanova/easycache
例子
楷模:
$item = Item::cache($id); // Get via integer.
$item = Item::cache($val); // Get via string value.
$item = Item::cache($email, 'email') // Get from cache via email `$passthrough`.
集合:
$items = Item::cache(); // Paginated, using `$perPage`.
$items = Item::
【文件预览】:
easycache-master
----src()
--------EasyCache.php(5KB)
--------Http()
--------migrations()
--------Models()
--------EasyCacheCollection.php(593B)
--------seeds()
----LICENSE(1KB)
----phpunit.xml(533B)
----README.md(7KB)
----tests()
--------EasyCacheTest.php(3KB)
----composer.json(873B)