async fetch_list_firewall_policies()

in bindings/xlb/src/edge_binding.ts [284:295]


  async fetch_list_firewall_policies(options: EdgeRequestInit): Promise<ListFirewallPoliciesResponse> {
    let policies = this.cache.get("firewallPolicies");
    if (policies === null) {
      this.log("debug", "Cache miss: fetch_list_firewall_policies");
      let fp = await this.fetch(new FetchApiRequest(new Request(this.listFirewallPoliciesUrl, options)));
      policies = this.toListFirewallPoliciesResponse(fp);
      this.cache.put("firewallPolicies", policies, 600000 /* 10 min */);
    } else {
      this.log("debug", "Cache hit: fetch_list_firewall_policies");
    }
    return policies;
  }