// Deletes an item with the given key from memcache server.
//
// Returns ErrCacheMiss if there were no item with such key
// on the server.
Deletes an item with the given key from memcache server.

Returns ErrCacheMiss if there were no item with such key
on the server.
// Deletes an item with the given key from memcache server . // // Returns ErrCacheMiss if there were no item with such key // on the server .
func (c *Client) Delete(key []byte) error {
	if !validateKey(key) {
		return ErrMalformedKey
	}
	var t taskDelete
	t.key = key
	if err := c.do(&t); err != nil {
		return err
	}
	if !t.itemDeleted {
		return ErrCacheMiss
	}
	return nil
}
func ( c * Client ) Delete ( key [ ] byte ) error { if ! validateKey ( key ) { return ErrMalformedKey } var t taskDelete t . key = key if err := c . do ( & t ) ; err != nil { return err } if ! t . itemDeleted { return ErrCacheMiss } return nil }
Deletes an item with the given key from memcache server.
Deletes an item with the given key from memcache server .