|
@@ -56,7 +56,8 @@ func GetNewestInfo(userId, userType string, newUserId int64) *NewestInfo {
|
|
return nt
|
|
return nt
|
|
}
|
|
}
|
|
|
|
|
|
-// 缓存code 配置最新的redis code;可以感觉redis内存大小 调节redis存储
|
|
|
|
|
|
+// GetPushHistoryCount 缓存code 配置最新的redis code;可以感觉redis内存大小 调节redis存储;
|
|
|
|
+// 根据GetPushHistoryCount 返回值 作为列表缓存key中一个参数
|
|
func (n *NewestInfo) GetPushHistoryCount() int64 {
|
|
func (n *NewestInfo) GetPushHistoryCount() int64 {
|
|
countKey := fmt.Sprintf("push_count_%s_%s", n.TableName, n.UserId)
|
|
countKey := fmt.Sprintf("push_count_%s_%s", n.TableName, n.UserId)
|
|
if b := redis.GetInt("other", countKey); b > 0 {
|
|
if b := redis.GetInt("other", countKey); b > 0 {
|