function setOption($name, $value) 
    {
        $availableOptions = array('errorHandlingAPIBreak', 'hashedDirectoryUmask', 'hashedDirectoryLevel', 'automaticCleaningFactor', 'automaticSerialization', 'fileNameProtection', 'memoryCaching', 'onlyMemoryCaching', 'memoryCachingLimit', 'cacheDir', 'caching', 'lifeTime', 'fileLocking', 'writeControl', 'readControl', 'readControlType', 'pearErrorMode', 'hashedDirectoryGroup', 'cacheFileMode', 'cacheFileGroup');
        if (in_array($name, $availableOptions)) {
            $property = '_'.$name;
            $this->$property = $value;
        }
    }
function setOption($name, $value) 
    {
        $availableOptions = array('errorHandlingAPIBreak', 'hashedDirectoryUmask', 'hashedDirectoryLevel', 'automaticCleaningFactor', 'automaticSerialization', 'fileNameProtection', 'memoryCaching', 'onlyMemoryCaching', 'memoryCachingLimit', 'cacheDir', 'caching', 'lifeTime', 'fileLocking', 'writeControl', 'readControl', 'readControlType', 'pearErrorMode', 'hashedDirectoryGroup', 'cacheFileMode', 'cacheFileGroup');
        if (in_array($name, $availableOptions)) {
            $property = '_'.$name;
            $this->$property = $value;
        }
    }
function setOption ( $ name , $ value ) { $ availableOptions = array ( 'errorHandlingAPIBreak' , 'hashedDirectoryUmask' , 'hashedDirectoryLevel' , 'automaticCleaningFactor' , 'automaticSerialization' , 'fileNameProtection' , 'memoryCaching' , 'onlyMemoryCaching' , 'memoryCachingLimit' , 'cacheDir' , 'caching' , 'lifeTime' , 'fileLocking' , 'writeControl' , 'readControl' , 'readControlType' , 'pearErrorMode' , 'hashedDirectoryGroup' , 'cacheFileMode' , 'cacheFileGroup' ) ; if ( in_array ( $ name , $ availableOptions ) ) { $ property = '_' . $ name ; $ this -> $ property = $ value ; } }
Generic way to set a Cache_Lite option

see Cache_Lite constructor for available options

@var string $name name of the option
@var mixed $value value of the option
@access public
Generic way to set a Cache_Lite option