【文件属性】:
文件名称:filecache:使用文件系统缓存
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-15 18:22:34
PHP
文件缓存
用文件系统缓存。
为什么要文件缓存?
如果您不想拥有其他依赖项或不想浪费您的 RAM。
特征
使用gzcompress压缩
到期
多级缓存目录
安装
composer require ark/filecache
用法
<?php
use Ark \ Filecache \ FileCache ;
$ cache = new FileCache ([
'root' => '/path/to/cache/root' , // Cache root
'ttl' => 0 , // Time to live
'compress' => false , // Compress data with gzcompress or not
'serialize' => 'json' ,
【文件预览】:
filecache-master
----.gitignore(21B)
----src()
--------FileCache.php(5KB)
--------Util.php(1KB)
----.travis.yml(43B)
----LICENSE(1KB)
----composer.json(324B)
----README.md(1KB)
----phpunit.xml(177B)
----tests()
--------baseTest.php(1KB)