public function getCache() { $cache = new PwCache(); $cache->mergeKeys(Wekit::V('cacheKeys')); if (Wekit::V('dbcache') && $cache->isDbCache()) { PwLoader::importCache(Wekit::S('cacheService')); } return $cache; }
/** * 获取Dao组合(单例) * * @param int $index 索引键 * @param array $daoMap dao列表 * @param string $vkey 区分符 * @return object */ public static function loadDaoFromMap($index, $daoMap, $vkey) { return PwLoader::loadDaoFromMap($index, $daoMap, $vkey); }
protected function _getDao() { return PwLoader::loadDao($this->path, false); }
public static function importCache($config) { self::$_cacheService = $config; }
protected function _getDao() { return PwLoader::loadDaoFromMap($this->index, $this->daoMap, $this->vkey, false); }