// Obtains multiple items associated with the the corresponding keys.
//
// Sets Item.Value, Item.Flags and Item.Casid for each returned item.
// Doesn't modify Item.Value and Item.Flags for items missing on the server.
Obtains multiple items associated with the the corresponding keys.

Sets Item.Value, Item.Flags and Item.Casid for each returned item.
Doesn't modify Item.Value and Item.Flags for items missing on the server.
// Obtains multiple items associated with the the corresponding keys . // // Sets Item . Value Item . Flags and Item . Casid for each returned item . // Doesn ' t modify Item . Value and Item . Flags for items missing on the server .
func (c *Client) GetMulti(items []Item) error {
	itemsCount := len(items)
	if itemsCount == 0 {
		return nil
	}
	for i := 0; i < itemsCount; i++ {
		if !validateKey(items[i].Key) {
			return ErrMalformedKey
		}
	}
	var t taskGetMulti
	t.items = items
	return c.do(&t)
}
func ( c * Client ) GetMulti ( items [ ] Item ) error { itemsCount := len ( items ) if itemsCount == 0 { return nil } for i := 0 ; i < itemsCount ; i ++ { if ! validateKey ( items [ i ] . Key ) { return ErrMalformedKey } } var t taskGetMulti t . items = items return c . do ( & t ) }
Obtains multiple items associated with the the corresponding keys.
Obtains multiple items associated with the the corresponding keys .