Cache_Lite::_memoryCacheAdd PHP Method

_memoryCacheAdd() public method

Add some date in the memory caching array
public _memoryCacheAdd ( string $data )
$data string data to cache
    function _memoryCacheAdd($data)
    {
        $this->_memoryCachingArray[$this->_file] = $data;
        if ($this->_memoryCachingCounter >= $this->_memoryCachingLimit) {
            list($key, ) = each($this->_memoryCachingArray);
            unset($this->_memoryCachingArray[$key]);
        } else {
            $this->_memoryCachingCounter = $this->_memoryCachingCounter + 1;
        }
    }