A PHP wrapper class for the wincache_ucache* functions.
/**
* Get Cache Object
*/
$cache = DDWinUCache::getInstance();
/**
* Cache Data
*/
$cache->set('foo', 'bar');
$cache->set('bar', 'candy');
$cache->set('hello_world', 'we did it!');
$cache->set('apple_red_core', 'simple tagging');
// === OR ===
$cache['foo'] = 'bar';
$cache['bar'] = 'candy';
$cache['hello_world'] = 'we did it!';
$cache['apple_red_core'] = 'simple tagging';
/**
* Delete Cache Entries
*/
$cache->delete('*or*'); // -> array('apple_red_core', 'hello_world');
// === OR ===
unset($cache['*or*']); // -> array('apple_red_core', 'hello_world');
/**
* Get Cached Data
*/
$cache->get('foo'); // -> "bar"
// === OR ===
$cache['foo']; // -> "bar"
http://dan.doezema.com/2010/07/wincache-php-class
DDWinUCache is released under the New BSD license. http://dan.doezema.com/licenses/new-bsd/