phpfit / cache-file
PSR-16 Implementation of simple cache usinig file
1.0.0
2025-08-15 03:48 UTC
Requires
- phpfit/file: ^1.0
- phpfit/source-generator: ^1.0
- psr/simple-cache: ^3.0
README
PSR-16 Implementation of simple cache usinig file
Installation
composer require phpfit/cache-file
Usage
use PhpFit\CacheFile\File; $cache = new File(__DIR__ . '/cache'); // Set cache for 12 second $cache->set('key', 'value', 12); $value = $cache->get('key', 'default');
License
The phpfit/env library is licensed under the MIT license. See License File for more information.