// Set stores a context for particular state.
438339
func (s *State) SetCTX(val interface{}) {
	mutex.Lock()
	if data[s] == nil {
		datat[s] = time.Now().Unix()
	}
	data[s] = val
	mutex.Unlock()
}
932391
func (s *Session) Set(key string, value interface{}) {
	if s.Keys == nil {
		s.Keys = make(map[string]interface{})
	}

	s.Keys[key] = value
}
26981
func (s *Session) Set(key string, value interface{}) {
	s.set(key, value, false)
}
766377
func (c *InMemoryCache) Set(_ context.Context, key Key, value Thunk) {
	c.items.Store(key.String(), value)
}
1072659
func (ctx *Context) Set(key, value string) {
	ctx.SetHeader(key, value)
}
1025744
func (f *tokenFuture) Set(token string) *tokenFuture {
	f.m.Lock()
	defer f.m.Unlock()

	f.set = true
	f.token = token
	for _, w := range f.waiting {
		close(w)
	}
	f.waiting = nil
	return f
}
724526
func (ec *Cache) Set(k string, v interface{}, size uint64, expire int32) {
	ec.Lock()
	ec.actualSet(k, v, size, expire)
	ec.Unlock()
}
172151
func Set(c context.Context, s Store) context.Context {
	if s == nil {
		return SetFactory(c, nil)
	}
	return SetFactory(c, func(context.Context) Store { return s })
}
1250826
func (c *APIContext) Set(key string, value interface{}) {
	if c.keys == nil {
		c.keys = make(map[string]interface{})
	}
	c.keys[key] = value
}
289624
func (etcdClient *SimpleEtcdClient) Set(key, value string) error {
	api := client.NewKeysAPI(etcdClient.etcd)
	_, err := api.Set(context.Background(), key, value, nil)
	return err
}
229516
func (s *Store) Set(ctx context.Context, name string, value []byte) error {
	filename := filepath.Join(s.path, filepath.Clean(name))
	filedir := filepath.Dir(filename)
	if !fsutil.IsDir(filedir) {
		if err := os.MkdirAll(filedir, 0700); err != nil {
			return err
		}
	}
	out.Debug(ctx, "fs.Set(%s) - %s", name, filepath.Join(s.path, name))
	return ioutil.WriteFile(filepath.Join(s.path, name), value, 0644)
}
232398
func (g *Gauge) Set(value float64) {
	g.g.Set(value)
	g.touch()
}
178848
func (s *nullStore) Set(parent string, scope []string, token string, TTL time.Duration) error {
	return nil
}
588721
func (r *RequestContext) Set(key string, value interface{}) {
	r.mutex.Lock()
	r.store[key] = value
	r.mutex.Unlock()
}
1008087
func (c *Context) Set(key interface{}, value interface{}) {
	store := c.getStore()
	store[key] = value
}
773791
func (context *Context) Set(name string, value interface{}) {
	if context.Options == nil {
		context.Options = map[string]interface{}{}
	}
	context.Options[name] = value
}
213555
func (s *InventoryItem) SetContext(v map[string]*string) *InventoryItem {
	s.Context = v
	return s
}