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