Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A PHP wrapper class for WinCache's user cache feature.
branch: master

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/

Something went wrong with that request. Please try again.