Lines Matching refs:count
50 int32_t count = GetCount(cacheKey) + 1; in CheckThreshold() local
53 UpdateCacheAndDb(cacheKey, threshold, count); in CheckThreshold()
54 return config_->IsValid() ? (count <= threshold) : true; in CheckThreshold()
91 if (value.count == COUNT_OF_INIT) { in UpdateCacheToDb()
98 .count = value.count, in UpdateCacheToDb()
133 return cache_[cachekey].count; in GetCount()
141 HIVIEW_LOGW("failed to query event info from db, count=%{public}d", eventInfo.count); in GetCount()
144 return eventInfo.count; in GetCount()
147 void DailyController::UpdateCacheAndDb(const CacheKey& cachekey, int32_t threshold, int32_t count) in UpdateCacheAndDb() argument
151 if (count == (threshold + 1)) { in UpdateCacheAndDb()
157 UpdateCache(cachekey, threshold, count, exceedTime); in UpdateCacheAndDb()
158 UpdateDb(cachekey, count, exceedTime); in UpdateCacheAndDb()
161 void DailyController::UpdateCache(const CacheKey& cachekey, int32_t threshold, int32_t count, int64… in UpdateCache() argument
166 .count = count, in UpdateCache()
172 cache_[cachekey].count = count; in UpdateCache()
178 void DailyController::UpdateDb(const CacheKey& cachekey, int32_t count, int64_t exceedTime) in UpdateDb() argument
181 if (count == COUNT_OF_INIT) { in UpdateDb()
185 .count = count, in UpdateDb()