// Obtains item.Value, item.Flags and item.Casid for the given item.Key.
//
// Returns ErrCacheMiss on cache miss.


Returns ErrCacheMiss on cache miss.
// Obtains item . Value item . Flags and item . Casid for the given item . Key . // // Returns ErrCacheMiss on cache miss .
func (c *Client) Get(item *Item) error {
	if !validateKey(item.Key) {
		return ErrMalformedKey
	}
	var t taskGet
	t.item = item
	if err := c.do(&t); err != nil {
		return err
	}
	if !t.found {
		return ErrCacheMiss
	}
	return nil
}
func ( c * Client ) Get ( item * Item ) error { if ! validateKey ( item . Key ) { return ErrMalformedKey } var t taskGet t . item = item if err := c . do ( & t ) ; err != nil { return err } if ! t . found { return ErrCacheMiss } return nil }