/** * @brief Dao层CacheProxy的具体处理逻辑 * * @param $func 用户传入的函数名 * @param $args 传递给$func函数的参数 * @return 从cache中拿到的数据或者是$func调用拿到的数据 * @retval 同$func对应函数返回数据类型一致 * @author chenyijie * @date 2012/09/27 20:32:42 **/ public function __call($func, $args) { if (!parent::_isCacheOpen('daocache/Global/cache')) { //不用cache 则直接调用类指定的方法 return parent::_getFunctionCall($func, $args); } return true; }
/** * @brief 取得app相关配置文档 * * @param $confItem 配置所在路径 * @return success-array或者string failed-false * @retval array/boolean * @author chenyijie * @date 2012/09/27 17:20:22 **/ protected function _getConf($confRoute) { $conf = Bd_Conf::getAppConf($confRoute, Bd_AppEnv::getCurrApp()); if ($conf === false) { $arrErr = array('caller' => 'CacheProxy', 'class' => get_class($this->objClass)); Bd_Log::warning("Get config from config file: " . $confRoute . " failed.", self::GET_CONF_FAILED, $arrErr); self::$errCode = self::GET_CONF_FAILED; } return $conf; }
public function getKeyDisableTime($confRoute) { return parent::_getKeyDisableTime($confRoute); }