Exemple #1
0
// onAppStart后调用
func InitMemcache() {
	client = memcache.New("localhost:11211")	
}
Exemple #2
0
func NewMemcachedCache(hostList []string, defaultExpiration time.Duration) MemcachedCache {
	return MemcachedCache{memcache.New(hostList...), defaultExpiration}
}