mirror of
https://github.com/ProudMuBai/GoFilm.git
synced 2026-02-15 23:24:41 +08:00
server modifity
This commit is contained in:
@@ -325,7 +325,7 @@ func GetMultiplePlay(siteName, key string) []MovieUrlInfo {
|
||||
// DataCache API请求 数据缓存
|
||||
func DataCache(key string, data map[string]interface{}) {
|
||||
val, _ := json.Marshal(data)
|
||||
db.Rdb.Set(db.Cxt, key, val, config.CategoryTreeExpired)
|
||||
db.Rdb.Set(db.Cxt, key, val, time.Minute*30)
|
||||
}
|
||||
|
||||
// GetCacheData 获取API接口的缓存数据
|
||||
|
||||
Reference in New Issue
Block a user