level-2/simplecache

A very simple ArrayAccess based file ache

Installs: 373

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 3

Forks: 1

Open Issues: 0

pkg:composer/level-2/simplecache

dev-master 2018-04-21 16:58 UTC

This package is auto-updated.

Last update: 2025-10-14 04:54:35 UTC


README

A very simplistic file cache that uses the ArrayAcces interface

Usage

  1. Include SimpleCache.php in your project
require_once 'SimpleCache\SimpleCache.php';
  1. Instantiate the SimpleCache class and provide a cache directory
$cache = new \SimpleCache\SimpleCache('./tmp');
  1. 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.