// Set sets the key to value. It replaces any existing values.
542344
func (m Map) Set(key, value string) {
	m[key] = []string{value}
}
1153065
func (clone *Clone) Set(key, value string, ttl int) {
	clone.pipe.SendMessage("SET", key, value, ttl)
}
726861
func (c *TwoTier) Set(key string, value []byte) {
	c.second.Set(key, value)
	c.first.Delete(key)
}
880092
func (s *Session) Set(key string, value interface{}) error {
	s.isDirty = true

	s.data[key] = value
	return nil
}
1250826
func (c *APIContext) Set(key string, value interface{}) {
	if c.keys == nil {
		c.keys = make(map[string]interface{})
	}
	c.keys[key] = value
}
981385
func (f *fileStorage) Set(key string, value []byte) error {
	file, err := f.fileForWrite(key)

	if err != nil {
		return err
	}

	defer file.Close()

	_, err = file.Write(value)
	return err
}
283610
func (hm *HashMap) Set(key Hashable, value interface{}) {
	(*hm).keys[key.Hash()] = key
	(*hm).values[key.Hash()] = value
}
99591
func (p *Params) Set(key, value string) {
	if len(key) == 0 {
		return
	}
	if key[0] != ':' && key[0] != '*' {
		key = ":" + key
	}

	for i, v := range *p {
		if v.Name == key {
			(*p)[i].Value = value
			return
		}
	}

	*p = append(*p, param{key, value})
}
251846
func (c *Context) Set(key string, value interface{}) {
	c.store.set(key, value)
}
98807
func (sa *StringsValue) Set(s string) error {
	*sa = append(*sa, s)
	return nil
}
1244255
func (k *KeyValueStringSlice) Set(value string) error {
	parts := strings.SplitN(value, KeyValueSeparator, 2)
	if len(parts) != 2 {
		return fmt.Errorf("Wrong format. Need key=value, got " + value)
	}
	k.Keys = append(k.Keys, parts[0])
	k.Values = append(k.Values, parts[1])
	return nil
}
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...)
}
1155015
func (c *Context) Set(key string, value interface{}) {
	c.data[key] = value
}
1136244
func (c cache) Set(key string, resp []byte) {
	c.Do("SET", cacheKey(key), resp)
}
659642
func (v *StringMap) Set(name, value string) {
	v.mu.Lock()
	v.values[name] = value
	v.mu.Unlock()
}
924267
func (r *Memory) Set(key string, value interface{}) error {
	r.Lock()
	defer r.Unlock()

	return r.cache.Set(key, value)
}
730308
func (v *Value) Set(s string) error {
	b, err := DecodeString(s)
	if err != nil {
		return err
	}
	*v = b
	return nil
}