Searched refs:cachekey (Results 1 - 2 of 2) sorted by relevance
/base/hiviewdfx/hiview/plugins/sysevent_source/control/ |
H A D | daily_controller.cpp | 117 int32_t DailyController::GetThreshold(const CacheKey& cachekey, int32_t type)
in GetThreshold() argument 119 if (cache_.find(cachekey) != cache_.end()) {
in GetThreshold() 120 return cache_[cachekey].threshold;
in GetThreshold() 122 int32_t threshold = config_->GetThreshold(cachekey.first, cachekey.second, type);
in GetThreshold() 130 int32_t DailyController::GetCount(const CacheKey& cachekey)
in GetCount() argument 132 if (cache_.find(cachekey) != cache_.end()) {
in GetCount() 133 return cache_[cachekey].count;
in GetCount() 137 .domain = cachekey.first,
in GetCount() 138 .name = cachekey in GetCount() 147 UpdateCacheAndDb(const CacheKey& cachekey, int32_t threshold, int32_t count) UpdateCacheAndDb() argument 161 UpdateCache(const CacheKey& cachekey, int32_t threshold, int32_t count, int64_t exceedTime) UpdateCache() argument 178 UpdateDb(const CacheKey& cachekey, int32_t count, int64_t exceedTime) UpdateDb() argument [all...] |
/base/hiviewdfx/hiview/plugins/sysevent_source/control/include/ |
H A D | daily_controller.h | 43 int32_t GetThreshold(const CacheKey& cachekey, int32_t type);
44 int32_t GetCount(const CacheKey& cachekey);
45 void UpdateCacheAndDb(const CacheKey& cachekey, int32_t threshold, int32_t count);
46 void UpdateCache(const CacheKey& cachekey, int32_t threshold, int32_t count, int64_t exceedTime);
47 void UpdateDb(const CacheKey& cachekey, int32_t count, int64_t exceedTime);
|
Completed in 2 milliseconds