phpfit / cache-file
PSR-16 Implementation of simple cache usinig file
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/phpfit/cache-file
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/cache-file library is licensed under the MIT license. See License File for more information.