// Set a cookie with given key to the value
962333
func (c *Cookies) Set(key, value string) {
	c.Mu.Lock()
	if c.Storage == nil {
		c.Storage = make(map[string]string, zero)
	}
	c.Storage[key] = value
	c.Mu.Unlock()
}
380051
func (r *RedisStore) Set(key string, value interface{}) error {
	return r.client.Set(key, value, r.expiration).Err()
}
844725
func (self *HttpClient) SetCookieJar(jar http.CookieJar) {
	self.client.Jar = jar
}
1277762
func (ctx *Context) Cookie(key string, defaults ...string) string {
	return ctx.Cookies().MustString(key, defaults...)
}
858857
func (c *CookieOverseer) Set(w http.ResponseWriter, r *http.Request, value string) error {
	ev, err := c.encode(value)
	if err != nil {
		return errors.Wrap(err, "unable to encode session value into cookie")
	}

	w.(cookieWriter).SetCookie(c.options.makeCookie(ev))

	return nil
}
888433
func (ctx *Context) Cookie(key string) (string, error) {
	c, err := ctx.Request.Cookie(key)
	if err != nil {
		return "", err
	}
	return c.Value, nil
}
1345401
func (s *InMemoryStorage) Cookies(u *url.URL) string {
	return StringifyCookies(s.jar.Cookies(u))
}
617008
func SetMap(cookies map[string]string) p.Plugin {
	return p.NewRequestPlugin(func(ctx *c.Context, h c.Handler) {
		for k, v := range cookies {
			cookie := &http.Cookie{Name: k, Value: v}
			ctx.Request.AddCookie(cookie)
		}
		h.Next(ctx)
	})
}
604742
func (r *Response) Set(key, value string) {
	r.handlerHeader.Set(key, value)
}
1285703
func (s *Settings) Set(key, value string) {
	s.settings[key] = value
}
872158
func (m *MemoryStorer) Set(key, value string) error {
	m.mut.Lock()
	m.sessions[key] = memorySession{
		expires: time.Now().UTC().Add(m.maxAge),
		value:   value,
	}
	m.mut.Unlock()

	return nil
}
866711
func (s *Secret) SetValue(key, value string) error {
	s.Lock()
	defer s.Unlock()

	if s.body == "" && s.data == nil {
		s.data = make(map[string]interface{}, 1)
	}
	if s.data == nil {
		return store.ErrYAMLNoMark
	}
	s.data[key] = value
	return s.encode()
}
565603
func (app *App) SetCookieExpire(d time.Duration) {
	if d != 0 {
		app.cookieExpire = d
	}
}
257242
func (ctx *context) SetCookie(cookie *http.Cookie, options ...CookieOption) {
	for _, opt := range options {
		opt(cookie)
	}

	http.SetCookie(ctx.writer, cookie)
}
938424
func (c *cookies) Set(ck *http.Cookie) {
	http.SetCookie(c.ResponseWriter, ck)
}
968276
func (s *ForwardedValues) SetCookies(v *CookiePreference) *ForwardedValues {
	s.Cookies = v
	return s
}
1072659
func (ctx *Context) Set(key, value string) {
	ctx.SetHeader(key, value)
}