public function setCaching($caching) {
        if(is_object($caching)) {
            $this->cacheObj = $caching;
            $this->cacheEnabled = true;
        }
        return $this;
    }
public function setCaching($caching) {
        if(is_object($caching)) {
            $this->cacheObj = $caching;
            $this->cacheEnabled = true;
        }
        return $this;
    }
public function setCaching ( $ caching ) { if ( is_object ( $ caching ) ) { $ this -> cacheObj = $ caching ; $ this -> cacheEnabled = true ; } return $ this ; }
Enables the caching and set the caching object to the one provided
@param object $caching This should be class of the type of caching you are using
Enables the caching and set the caching object to the one provided