|
@@ -381,7 +381,7 @@ func GetEntIndexShow(isFree bool) (list *[]map[string]interface{}) {
|
|
|
listTmp := elastic.Get(index, itype, sql)
|
|
|
if listTmp != nil && len(*listTmp) > 0 {
|
|
|
list = formatData(listTmp, isFree)
|
|
|
- redis.Put(entSearchCacheDB, entSearchCacheKey, list, 60*60*10)
|
|
|
+ redis.PutCKV(entSearchCacheDB, fmt.Sprintf(entSearchCacheKey, isFree), list)
|
|
|
}
|
|
|
return
|
|
|
}
|