attogram / filesystem-cache
基于文件系统的PHP 7缓存系统
dev-master
2020-02-15 19:09 UTC
Requires
- php: ^7
This package is auto-updated.
Last update: 2024-09-16 06:55:32 UTC
README
基于文件系统的PHP 7缓存系统。
- 仓库: https://github.com/attogram/filesystem-cache
- Packagist: https://packagist.org.cn/packages/attogram/filesystem-cache
- CodeClimate:
- Travis-CI:
使用说明
use Attogram\Filesystem\Cache; $cacheDirectory = '../cache/'; // must include trailing slash $cache = new Cache($cacheDirectory);
函数
- public function exists(string $key): bool
- public function get(string $key)
- public function set(string $key, string $value): bool
- public function delete(string $key): bool
- public function age(string $key): int
类似项目
- https://github.com/Gregwar/Cache
- https://github.com/cosenary/Simple-PHP-Cache
- https://github.com/jdorn/FileSystemCache
- https://github.com/php-cache/filesystem-adapter
- https://github.com/Wruczek/PHP-File-Cache
- https://github.com/saltybeagle/StaticCache
- https://github.com/sarahman/simple-filesystem-cache
- https://github.com/chrisullyott/simple-cache
- https://github.com/override2k/psr-cache
- ...