2017 © Pedro Peláez
 

library simplecache

A very simple ArrayAccess based file ache

image

level-2/simplecache

A very simple ArrayAccess based file ache

  • Saturday, April 21, 2018
  • by TomBZombie
  • Repository
  • 2 Watchers
  • 4 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 25 % Grown

The README.md

SimpleCache

A very simplistic file cache that uses the ArrayAcces interface, (*1)

Usage

1) Include SimpleCache.php in your project, (*2)

require_once 'SimpleCache\SimpleCache.php';

2) Instantiate the SimpleCache class and provide a cache directory, (*3)

$cache = new \SimpleCache\SimpleCache('./tmp');

3) 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., (*4)

The Versions

21/04 2018

dev-master

9999999-dev

A very simple ArrayAccess based file ache

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.4.0

 

by Tom Butler

cache file cache