A PHP wrapper class for WinCache's user cache feature.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
class.ddwinucache.php
license.txt

README.md

DDWinUCache

Purpose

A PHP wrapper class for the wincache_ucache* functions.

Basic Usage

/**
 * 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"

Website

http://dan.doezema.com/2010/07/wincache-php-class

License

DDWinUCache is released under the New BSD license. http://dan.doezema.com/licenses/new-bsd/