Пример #1
0
func New(cf *config.ConfigMemcache) *ClientPool {
	this := new(ClientPool)
	this.conf = cf
	this.clients = make(map[string]*Client)
	for _, pool := range cf.Pools() {
		this.clients[pool] = newClient(cf)
	}
	return this
}