New returns a memcache client using the provided server(s) with equal weight. If a server is listed multiple times, it gets a proportional amount of weight.
(server ...string)
| 120 | // with equal weight. If a server is listed multiple times, |
| 121 | // it gets a proportional amount of weight. |
| 122 | func New(server ...string) *Client { |
| 123 | ss := new(ServerList) |
| 124 | ss.SetServers(server...) |
| 125 | return NewFromSelector(ss) |
| 126 | } |
| 127 | |
| 128 | // NewFromSelector returns a new Client using the provided ServerSelector. |
| 129 | func NewFromSelector(ss ServerSelector) *Client { |