Lines Matching refs:cache
52 for (auto& cache : caches_) {
53 cleanUpFunc_(cache.second);
71 HDF_LOGD("%{public}s: set cache max count from %{public}u to %{public}u",
82 bool InsertCache(IdType id, CacheType* cache)
87 HDF_LOGI("%{public}s: intend to insert a existing cache, SeqNo=%{public}d", __func__, id);
88 cacheItem->second.reset(cache);
94 caches_[id] = std::move(std::unique_ptr<CacheType>(cache));
129 void TravelCaches(std::function<void (IdType id, const CacheType& cache)> func)
168 for (auto& cache : caches_) {
169 cleanUpFunc_(cache.second);
187 HDF_LOGI("%{public}s: set cache max count from %{public}u to %{public}u",
198 bool InsertCache(IdType id, Base::NativeBuffer* cache)
203 HDF_LOGI("%{public}s: intend to insert a existing cache, SeqNo=%{public}d", __func__, id);
204 cacheItem->second = OHOS::sptr<Base::NativeBuffer>(cache);
210 caches_[id] = OHOS::sptr<Base::NativeBuffer>(cache);
246 void TravelCaches(std::function<void (IdType id, const Base::NativeBuffer& cache)> func)