README (MultiCache class)
=========================================
NAME: MultiCache class
VERSION: 1.00
DESCRIPTION:
MultiCache class class provides a convenient way to work with caches.
It can use local file system, memcache or other external storage.
Supported features:
- File system cache and memcache.
- Cache limit control. Check cache size and number of cached items.
- Flexible cache clean logic (garbage collector).
SYNOPSIS:
<?php
include 'MultiCache.class.php';
include 'MultiCacheFile.class.php';
$mc = new MultiCacheFile();
$mc->set('test', 'value', 10);
print $mc->get('test');
?>
<?php
include 'MultiCache.class.php';
include 'MultiCacheMemcache.class.php';
$mc = new MultiCacheMemcache();
$mc->set('test', 'value', 10);
print $mc->get('test');
?>
|