Registry / utility / gregwar-cache

gregwar-cache

JSON →
library1.0.13phppackagistunverified

A lightweight file-system cache system.

composer require gregwar/cache
INSTALL
IMPORT
SIG · GREGWAR-CACHE
G
gregwar-cache
utilityphpv1.0.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cache
use Gregwar\Cache\Cache;

Cache and retrieve data using a file-based cache.

use Gregwar\Cache\Cache; $cache = new Cache(); $cache->setCacheDirectory('/path/to/cache'); $data = $cache->getOrCreate('my-key', function() { return 'expensive computation result'; }); echo $data;
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.13latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
gregwar-cache — pip install gregwar-cache · libregistry