Versions in this module Expand all Collapse all v0 v0.0.2 Nov 29, 2022 v0.0.1 Nov 29, 2022 Changes in this version + var Gorm *gorm.DB + var NewsCachePool *sync.Pool + func NewMCache() *goredis.SimpleCache + func NewsDBGetter(id string) goredis.DBGettFunc + func ReleaseMCache(cache *goredis.SimpleCache) + type McachePool struct + func NewMCachePool(config mstruct.MCacheConfig) *McachePool + func (this *McachePool) SetConn() + type NewsModel struct + NewsContent string + NewsID int + NewsTime time.Time + NewsTitle string + NewsVies int + func NewNewsModel() *NewsModel