Documentation
¶
Index ¶
- Variables
- func AddTagCache(meta *tag.Meta)
- func ClearTagCache(tm time.Time)
- func GetTagCache(ids ...int64) (result map[int64]*tag.Meta, leftIDs []int64)
- func GetTidName(tid int64) string
- func GetTidNames(tids []int64) (tpNames map[int64]string)
- func LoadCache()
- func RefreshUpType(tm time.Time)
- func RefreshUpTypeAsync(tm time.Time)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //TagCache tag's cache key=>tag_id, value=>*tag.Meta TagCache = make(map[int64]*tag.Meta) )
View Source
var ( //VideoUpTypeCache cache for video types, map key is tid VideoUpTypeCache = make(map[int]archive.Type) )
Functions ¶
func GetTagCache ¶
GetTagCache get tag cache
func GetTidNames ¶
GetTidNames get tid name
func RefreshUpTypeAsync ¶
RefreshUpTypeAsync refresh in a goroutine
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.