コード例 #1
0
ファイル: DaoCacheProxy.php プロジェクト: drehere/shenmegui
 /**
  * @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;
 }
コード例 #2
0
ファイル: DsCacheProxy.php プロジェクト: drehere/shenmegui
 public function isCacheOpen($confRoute)
 {
     return parent::_isCacheOpen($confRoute);
 }