|
@@ -45,6 +45,10 @@ func (this *AheadManager) GetData(userId, keyWords string, isNew bool, t int64)
|
|
cacheKey := fmt.Sprintf(AheadRequestFrequencyCacheKey, time.Now().Format(public.TimeFormat), t, userId)
|
|
cacheKey := fmt.Sprintf(AheadRequestFrequencyCacheKey, time.Now().Format(public.TimeFormat), t, userId)
|
|
if this.Conf.DailyTimes <= redis.GetInt(AheadCacheDb, cacheKey) {
|
|
if this.Conf.DailyTimes <= redis.GetInt(AheadCacheDb, cacheKey) {
|