The Memcache Caching Plugin

Description

This plugin enables caching using the Memcache library server. This client, which must be used on Windows clients, does not provide access to server grouping but can be used with compression.

'' ADOdb\addins\cache\plugins\memcache\ADOCacheDefinitions '' </WRAP>

The ADOCachingDefinitions Class

class ADOCacheDefinitions
{
    /*
    * Debugging for cache
    */
    public bool $debug = false;
 
    /*
    * Service flag. Do not modify value
    */
    public string $serviceName = 'memcache';
 
    public string $serviceDescription = 'MEMCACHE';
 
    /*
    * Use 'true' to store the item compressed (uses zlib)
    */
    public bool $memcacheCompress = false;
 
    /*
    * See the compression threshold documentation
    */
    public array $memcacheCompressionThreshold = array('threshold'=>0,'savings'=>0);
 
    /*
    * build a list of as many controllers as needed
    */
    public array $memCacheControllers = array();
 
    /*
    * Use the servers option for memcached, can specify
    * host, port weight for a group of controllers
    *
    * 'host'=>192.68.0.85','port'=>'11261','weight'=>66
    */
    public array $memcacheControllerItem = array(
		'host'=>'',
		'port'=>11211,
		'persistent'=>true,
		'weight'=> 100,
		'timeout'=>1,
		'retry'=>15,
		'online'=>true,
		'failureCallback'=>null);
 
}

memcacheControllerItem

One or more hosts available to the memcache service, each entry can be configured as required. If multiple hosts are defined, then the total weighting must equal 100.

memcacheCompress

A boolean that flags whether to use compression. The threshold and savings must be defined per the memcache documentation.

</code>