protected function setCache($cid, $component_obj)
    {
        $this->localCache[$cid] = $component_obj;
        $this->saveCache($cid, $component_obj);
    }
protected function setCache($cid, $component_obj)
    {
        $this->localCache[$cid] = $component_obj;
        $this->saveCache($cid, $component_obj);
    }
protected function setCache ( $ cid , $ component_obj ) { $ this -> localCache [ $ cid ] = $ component_obj ; $ this -> saveCache ( $ cid , $ component_obj ) ; }
Sets the local and extended cache.

@param string $cid           Path to JSON file.
@param object $component_obj Object to be stored in cache.
Sets the local and extended cache .