// set is used to set the results and unblock any waiter. This may only be
// called once.
559274
func (f *future) set(instance loader.PluginInstance, err error) {
	f.instance = instance
	f.err = err
	close(f.waitCh)
}
286466
func (i *Uint8) Set(value uint8) {
	i.lock.Lock()
	defer i.lock.Unlock()
	i.increment = value
}
94331
func (h Handler) Set(cmd common.SetRequest) error {
	_, err := h.doRequest(cmd, common.RequestSet)
	return err
}
724526
func (ec *Cache) Set(k string, v interface{}, size uint64, expire int32) {
	ec.Lock()
	ec.actualSet(k, v, size, expire)
	ec.Unlock()
}
924267
func (r *Memory) Set(key string, value interface{}) error {
	r.Lock()
	defer r.Unlock()

	return r.cache.Set(key, value)
}
366276
func (h *multiHandler) Set(key string, value interface{}, args ...interface{}) error {
	lengthArgs := len(args)
	if lengthArgs > 0 && !h.Args() {
		return cfg.ErrArgsNotSupported
	}

	for _, handler := range h.handlers {
		switch {
		case lengthArgs != 0 && handler.Args():
			if err := handler.Set(key, value, args...); err == nil {
				return nil
			}
		default:
			if err := handler.Set(key, value); err == nil {
				return nil
			}
		}

	}
	return cfg.ErrKeyNotSet
}
286431
func (c *Strings) Set(value string) error {
	*c = append(*c, value)
	return nil
}
125734
func (v *String) Set(value string) {
	v.mu.Lock()
	v.s = value
	v.mu.Unlock()
}
1360561
func (i *AtomicInt32) Set(n int32) {
	atomic.StoreInt32(&i.int32, n)
}
538931
func (me *Int) Set(s string) {
	v, _ := strconv.ParseInt(s, 0, 32)
	*me = Int(v)
}
275037
func (me *Event) Set() (first bool) {
	if me.closed {
		return false
	}
	if me.ch == nil {
		me.ch = make(chan struct{})
	}
	close(me.ch)
	me.closed = true
	return true
}
1115030
func (i *Uint64) Set(value uint64) {
	i.lock.Lock()
	defer i.lock.Unlock()
	i.increment = value
}
116228
func (c *Client) Set(annotations map[string]map[string]string) ([]params.ErrorResult, error) {
	args := params.AnnotationsSet{entitiesAnnotations(annotations)}
	results := new(params.ErrorResults)
	if err := c.facade.FacadeCall("Set", args, results); err != nil {
		return nil, errors.Trace(err)
	}
	return results.Results, nil
}
226323
func (body Body) Set(expr *Expr, pos int) {
	body[pos] = expr
	expr.Index = pos
}
579991
func (c *Context) Set(key string, value interface{}) {
	c.Context = context.WithValue(c.Context, key, value)
}
355690
func (h *applyHandler) Set(key string, value interface{}, args ...interface{}) error {
	var err error
	if h.keyFunc != nil {
		key, err = h.keyFunc(key)
		if err != nil {
			return err
		}
	}

	if h.valueFunc != nil {
		value, err = h.valueFunc(value)
		if err != nil {
			return err
		}
	}
	return h.handler.Set(key, value, args...)
}
700458
func (r *RedisStorer) Set(key, value string) error {
	return r.client.Set(key, value, r.maxAge).Err()
}