def refresh_cache
      # Raca::HttpClient depends on Raca::Account, so we intentionally don't use it here
      # to avoid a circular dependency
      Net::HTTP.new(identity_host, 443).tap {|http|
        http.use_ssl = true
      }.start {|http|
        payload = {
          auth: {
            'RAX-KSKEY:apiKeyCredentials' => {
              username: @username,
              apiKey: @key
            }
          }
        }
        response = http.post(
          tokens_path,
          JSON.dump(payload),
          {'Content-Type' => 'application/json'},
        )
        if response.is_a?(Net::HTTPSuccess)
          cache_write(cache_key, JSON.load(response.body))
        else
          raise_on_error(response)
        end
      }
    end
def refresh_cache
      # Raca::HttpClient depends on Raca::Account, so we intentionally don't use it here
      # to avoid a circular dependency
      Net::HTTP.new(identity_host, 443).tap {|http|
        http.use_ssl = true
      }.start {|http|
        payload = {
          auth: {
            'RAX-KSKEY:apiKeyCredentials' => {
              username: @username,
              apiKey: @key
            }
          }
        }
        response = http.post(
          tokens_path,
          JSON.dump(payload),
          {'Content-Type' => 'application/json'},
        )
        if response.is_a?(Net::HTTPSuccess)
          cache_write(cache_key, JSON.load(response.body))
        else
          raise_on_error(response)
        end
      }
    end
Raca classes use this method to occasionally re-authenticate with the rackspace
 servers. You can probably ignore it.