// Set sets data into redis. data is wrapped by gob-encoded Item
487631
func (c *RedisCache) Set(key string, data interface{}) error {
	return c.SetExpire(key, data, c.defaultTTL)
}
319563
func (s *SyncString) Set(v string) {
	s.Lock()
	defer s.Unlock()
	s.string = v
}
1040848
func (t *Trie) Set(key []byte, value interface{}) {
	t.insert(key, value, true)
}
338127
func (buf *Buffer) Set(rs ...rune) error {
	rsLen := len(rs)
	buf.data = rs
	buf.pos = rsLen
	buf.size = rsLen

	return buf.Refresh()
}
608096
func (s *Setter) Set(addr chunk.Address) (err error) {
	return s.db.set(s.mode, addr)
}
161459
func (m *MemSwapBytes) Set(value string) error {
	if value == "-1" {
		*m = MemSwapBytes(-1)
		return nil
	}
	val, err := units.RAMInBytes(value)
	*m = MemSwapBytes(val)
	return err
}
684076
func (cache *Cache) Set(key string, im *imageserver.Image, params imageserver.Params) error {
	data, err := im.MarshalBinary()
	if err != nil {
		return err
	}
	return cache.setData(key, data)
}
516320
func (h Hash) Set(key string, value interface{}) Hash {
	h[key] = Value(valueToBytes(value))
	return h
}
805965
func (m *Miniredis) Set(k, v string) error {
	return m.DB(m.selectedDB).Set(k, v)
}
168729
func (k *ArrayKeyring) Set(i Item) error {
	if k.items == nil {
		k.items = map[string]Item{}
	}
	k.items[i.Key] = i
	return nil
}
542344
func (m Map) Set(key, value string) {
	m[key] = []string{value}
}
1371907
func (l *ShardedNoTS) Set(tenantID, key string, val interface{}) error {
	_, ok := l.cache[tenantID]
	if !ok {
		l.cache[tenantID] = l.constructor()
		l.itemCount[tenantID] = 0
	}

	l.itemCount[tenantID]++
	return l.cache[tenantID].Set(key, val)
}
999124
func (w *Waiter) Set(data GenericDataType) {
	w.Diode.Set(data)
	w.c.Broadcast()
}
188283
func (rkv *KeyValue) Set(key, value string) error {
	conn := rkv.pool.Get(rkv.dbindex)
	_, err := conn.Do("SET", rkv.id+":"+key, value)
	return err
}
1145890
func (w *Windowed) Set(data []float64) {
	if w.data != nil {
		w.data = w.data[:0]
	}

	w.data = append(w.data, data...)

	w.sum = 0
	for _, v := range w.data {
		w.sum += v
	}

	w.head = 0
	w.length = len(data)
}
975170
func (r *MemoryNoTS) Set(key string, value interface{}) error {
	r.items[key] = value
	return nil
}
1253138
func (b *BytesRefBuilder) Set(offset int, v byte) {
	b.ref.Bytes[offset] = v
}