phpfit/cache-file

PSR-16 Implementation of simple cache usinig file

1.0.0 2025-08-15 03:48 UTC

This package is auto-updated.

Last update: 2025-08-15 03:50:44 UTC


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.