//Set a key with value
162378
func (m *SecureMap) Set(key, value interface{}) {

	if _, ok := m.data[key]; ok {
		return
	}

	m.lock.Lock()
	m.data[key] = value
	m.lock.Unlock()
}
338494
func (u U) Set(key string, f func() error, o interface{}) interface{} {
	if item, ok := u.u[key]; ok {
		return item.obj
	}
	u.u[key] = item{todo, f, o}
	return o
}
940829
func (c *Ctx) Set(key interface{}, value interface{}) {
	c.netContext = context.WithValue(c.netContext, key, value)
}
472967
func (c *rpcLabels) Set(key, val string) {
	*c = append(*c, data.Option{Name: key, Value: val})
}
58777
func (c *Context) Set(key string, val interface{}) {
	c.moot.Lock()
	defer c.moot.Unlock()
	c.data[key] = val
}
1349580
func (r *ConnectionValues) Set(key string, value interface{}) {
	args := *r
	n := len(args)
	for i := 0; i < n; i++ {
		kv := &args[i]
		if string(kv.key) == key {
			kv.value = value
			return
		}
	}

	c := cap(args)
	if c > n {
		args = args[:n+1]
		kv := &args[n]
		kv.key = append(kv.key[:0], key...)
		kv.value = value
		*r = args
		return
	}

	kv := connectionValue{}
	kv.key = append(kv.key[:0], key...)
	kv.value = value
	*r = append(args, kv)
}
509169
func (c *connection) SetValue(key string, value interface{}) {
	c.values.Set(key, value)
}
121298
func (v Values) Set(key, value string) {
	v[key] = []string{value}
}
573960
func (s *Section) SetKey(key, value string) {
	s.SetKeyValueRaw(s.file.KeyManipFunc(key), s.file.ValueManipFunc(value))
}
1058098
func (s *Scope) SetKey(v string) *Scope {
	s.Key = &v
	return s
}
630876
func (s *Get) SetKey(v map[string]*AttributeValue) *Get {
	s.Key = v
	return s
}
516320
func (h Hash) Set(key string, value interface{}) Hash {
	h[key] = Value(valueToBytes(value))
	return h
}
810900
func (env *Env) Set(key, value string) {
	*env = append(*env, key+"="+value)
}
206982
func (s *RedisMapStore) Set(key string, value interface{}, properties ...string) error {
	key, vmap, err := s.prepare(key, value, properties...)
	if err != nil {
		return err
	}
	if len(vmap) == 0 {
		return nil
	}
	return s.client.HMSet(key, vmap).Err()
}
1310839
func (p *SessionStore) Set(key string, value interface{}) error {
	p.Lock()
	defer p.Unlock()
	p.values[key] = value
	return nil
}
237935
func (s *MapFilter) SetKey(v string) *MapFilter {
	s.Key = &v
	return s
}
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...)
}