// Set accepts a token but does nothing with it
178848
func (s *nullStore) Set(parent string, scope []string, token string, TTL time.Duration) error {
	return nil
}
1358372
func (ns *NullString) Set(value interface{}) error {

	ns.valid = false
	ns.value = ""

	if value == nil {
		return nil
	}

	ns.valid = true
	ns.value = fmt.Sprint(value)

	return nil
}
125734
func (v *String) Set(value string) {
	v.mu.Lock()
	v.s = value
	v.mu.Unlock()
}
559261
func (p JSPointer) Set(item interface{}, value interface{}) error {
	var ctx matchCtx

	ctx.set = true
	ctx.raw = p.raw
	ctx.tokens = &p.tokens
	ctx.setvalue = value
	ctx.apply(item)
	return ctx.err
}
1115030
func (i *Uint64) Set(value uint64) {
	i.lock.Lock()
	defer i.lock.Unlock()
	i.increment = value
}
1066866
func (tt *Type) Set(v string) error {
	return targetTypeEnum.FlagSet(tt, v)
}
1034168
func (qb *TiDBQueryBuilder) Set(kv ...string) QueryBuilder {
	qb.Tokens = append(qb.Tokens, "SET", strings.Join(kv, CommaSpace))
	return qb
}
785123
func (c *Client) SetToken(v string) {
	c.modifyLock.Lock()
	defer c.modifyLock.Unlock()

	c.token = v
}
319563
func (s *SyncString) Set(v string) {
	s.Lock()
	defer s.Unlock()
	s.string = v
}
1296373
func (s *HlsAkamaiSettings) SetToken(v string) *HlsAkamaiSettings {
	s.Token = &v
	return s
}
286466
func (i *Uint8) Set(value uint8) {
	i.lock.Lock()
	defer i.lock.Unlock()
	i.increment = value
}
457398
func (f *Strings) Set(i string) error {
	*f = append(*f, i)
	return nil
}
490686
func (u *URLs) Set(s string) error {
	for _, t := range strings.Split(s, ",") {
		url, err := url.Parse(t)
		if err != nil {
			return err
		}

		*u = append(*u, *url)
	}

	return nil
}
964469
func Set(c *context.Context, u *User) {
	c.Values.Set(userKey, u)
}
744850
func (s *redisStore) Set(parent string, scopes []string, token string, TTL time.Duration) (err error) {
	// use expiry from parent token
	claims, err := claims.FromTokenWithoutValidation(parent)
	if err != nil {
		return err
	}

	// get ttl from token
	ttl := time.Unix(claims.ExpiresAt, 0).Sub(time.Now()) - TTLMargin

	// if TTL is explicitly set, use that one
	if TTL != time.Duration(0) {
		ttl = TTL
	}

	if ttl < time.Duration(0) {
		return nil
	}

	for _, scope := range scopes {
		err = s.client.Set(key(parent, scope), token, TTL).Err()
		if err != nil {
			return err
		}
	}

	return nil
}
393522
func (s *String) Set(val string) error {
	*s = String(val)
	return nil
}
556348
func (f *commaListFlag) Set(s string) error {
	if f == nil {
		return errors.Reason("commaListFlag pointer is nil").Err()
	}
	*f = splitCommaList(s)
	return nil
}