/** * @brief 根据配置文件取得cache客户端实例 * * @return success-CacheClient对象实例 failed-false * @retval object/boolean * @author chenyijie * @date 2012/09/27 17:42:24 **/ protected function _getCacheClient() { $this->objCacheClient = Saf_Cache_CacheClient::getInstance(); if ($this->objCacheClient === false) { $arrErr = array('caller' => 'CacheProxy', 'class' => get_class($this->objClass)); Bd_Log::warning("Get Cache Client Instance failed", self::CREATE_CACHE_CLIENT_FAILED, $arrErr); self::$errCode = self::CREATE_CACHE_CLIENT_FAILED; } return $this->objCacheClient; }
public static function setInstance($instance) { self::$instance = $instance; }