// Stores the given item in the memcache server.
Stores the given item in the memcache server.
// Stores the given item in the memcache server .
func (c *Client) Set(item *Item) error {
	if !validateKey(item.Key) {
		return ErrMalformedKey
	}
	if item.Value == nil {
		return ErrNilValue
	}
	var t taskSet
	t.item = item
	return c.do(&t)
}
func ( c * Client ) Set ( item * Item ) error { if ! validateKey ( item . Key ) { return ErrMalformedKey } if item . Value == nil { return ErrNilValue } var t taskSet t . item = item return c . do ( & t ) }
Stores the given item in the memcache server.
Stores the given item in the memcache server .