Overriding Cache Response Key and Parameters

Using TIBCO API Exchange Gateway, you can override the following parameters for a specific facade operation request:

  • Cache Response Key. See Cache Response Key.
  • Cache Response Parameters.

    The Cache Response Key and Cache Response parameters can be overwritten using a custom XSLT file.

To override the cache response key and cache response parameters, follow these steps:

Procedure

  1. Create XSLT File.

    Create an XSLT file with the following key types to specify the new values for the cache response. Refer to Sample XSLT File.

    Key Tags for XSLT File
    KeyType Description
    CacheResponse_Key Specifies the cache response key for a facade operation request used to check if a cached response exists for this request.
    CacheResponse_ShortWait Specifies the time that the Core Engine waits for a response from the target service before sending a response back from the cache.
    CacheResponse_TTL Specifies the time (in seconds) that a response is retained in the cache.
  2. Upload XSLT File.

    To upload the XSLT file, follow these steps:

    1. Start the Config UI, if not running.
    2. Log in to the Config UI using your credentials.
    3. Add a new project or select an existing project under Projects.
    4. Click the ROUTING tab on the right-hand side.
    5. Click the Facade Operations tab.
    6. Select a facade operation to enable the response caching.
    7. Upload the XSLT file in the New ProcessBody Transform field.
    8. Save the changes to your configuration.
      Note: If you copy the XSLT file to the ASG_CONFIG_HOME/ASGProjectConfig/xslt directory, select the XSLT file in the ProcessBody Transform field of the Facade Operations tab.