Explorar o código

feat:最新标讯1

wangshan %!s(int64=2) %!d(string=hai) anos
pai
achega
84c2192ad2
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      jyBXBase/rpc/model/newestBidding.go

+ 2 - 1
jyBXBase/rpc/model/newestBidding.go

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