Documentation
¶
Index ¶
Constants ¶
View Source
const ENV_GO_CACHE_DEFAULT_DURATION = "env_go_default_cache_duration"
View Source
const ENV_GO_CACHE_POOL_NAME = "env_go_default_cache_pool_name"
Variables ¶
This section is empty.
Functions ¶
func SaveWithLifeSpan ¶
保存数据,指定时间后过期
Types ¶
type ObjPool ¶
type ObjPool struct {
sync.Mutex
Inuse []interface{}
Available []interface{}
New func() interface{}
Reset func(obj interface{})
}
func NewObjPool ¶
func NewObjPool(new func() interface{}) *ObjPool
Click to show internal directories.
Click to hide internal directories.