Cache_Lite::getMemoryCachingState PHP 메소드

getMemoryCachingState() 공개 메소드

Load the state of the caching memory array from a given cache file cache
public getMemoryCachingState ( string $id, string $group = 'default', boolean $doNotTestCacheValidity = false )
$id string cache id
$group string name of the cache group
$doNotTestCacheValidity boolean if set to true, the cache validity won't be tested
    function getMemoryCachingState($id, $group = 'default', $doNotTestCacheValidity = false)
    {
        if ($this->_caching) {
            if ($data = $this->get($id, $group, $doNotTestCacheValidity)) {
                $array = unserialize($data);
                $this->_memoryCachingCounter = $array['counter'];
                $this->_memoryCachingArray = $array['array'];
            }
        }
    }