浏览代码

feat:文库推荐缓存调整

fuwencai 1 年之前
父节点
当前提交
5c43ad2d22
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jydocs-back/servers/stdDoc.go

+ 1 - 1
jydocs-back/servers/stdDoc.go

@@ -324,7 +324,7 @@ func (stdDoc *StdDoc) DocRecommend() {
 			return nil, fmt.Errorf("参数无效")
 		}
 		topKey := fmt.Sprintf("jydoc_RecCache_%d_%s", regionState, tag)
-		listCache := redis.Get("other", topKey)
+		listCache := redis.Get(public.RedisCode, topKey)
 		if listCache != nil {
 			list, ok := listCache.([]interface{})
 			if ok && list != nil && len(list) > 0 {