code: func FetchCachedSettings(c context.Context) (Settings, error) {
  	s := Settings{}
  	switch err := settings.Get(c, settingsKey, &s); err {
  	case nil:
  		// Backwards-compatibility with full URL: translate to host.
  		s.ConfigServiceHost = translateConfigURLToHost(s.ConfigServiceHost)
  		return s, nil
  	case settings.ErrNoSettings:
  		return DefaultSettings(c), nil
  	default:
  		return Settings{}, err
  	}
  }
docs: // FetchCachedSettings fetches Settings from the settings store.
  //
  // Uses in-process global cache to avoid hitting datastore often. The cache
  // expiration time is 1 min (see gaesettings.expirationTime), meaning
  // the instance will refetch settings once a minute (blocking only one unlucky
  // request to do so).
  //
  // Returns errors only if there's no cached value (i.e. it is the first call
  // to this function in this process ever) and datastore operation fails.