attogram / filesystem-cache
Filesystem-based cache system for PHP 7
dev-master
2020-02-15 19:09 UTC
Requires
- php: ^7
This package is auto-updated.
Last update: 2024-11-16 07:17:15 UTC
README
Filesystem-based cache system for PHP 7.
- Repository: https://github.com/attogram/filesystem-cache
- Packagist: https://packagist.org/packages/attogram/filesystem-cache
- CodeClimate:
- Travis-CI:
Usage
use Attogram\Filesystem\Cache; $cacheDirectory = '../cache/'; // must include trailing slash $cache = new Cache($cacheDirectory);
Functions
- 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
Similar projects
- 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
- ...