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