level-2 / simplecache
A very simple ArrayAccess based file ache
dev-master
2018-04-21 16:58 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-12-14 03:08:40 UTC
README
A very simplistic file cache that uses the ArrayAcces interface
Usage
- Include SimpleCache.php in your project
require_once 'SimpleCache\SimpleCache.php';
- Instantiate the SimpleCache class and provide a cache directory
$cache = new \SimpleCache\SimpleCache('./tmp');
- Use the
$cache
object like any array. Index names will be created as files. When you run the script again the index will still have the value you assigned it.