1 / 12

CACHE SCOPE

about cache scope

Yamini1
Download Presentation

CACHE SCOPE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cache scope

  2. Cache scope determines whether the message’s payload is consumable. A consumable payload can only be read once before it is lost – such as a streaming payload – and cannot be cached. • If the message payload is consumable, cache scope always processes the message; nothing is cached and the caching strategy is abandoned. • If the message payload is not consumable, cache scope continues to the next step in the caching strategy. The Cache Scope is a Mule feature for storing and reusing frequently called data. The Cache Scope saves on time and processing load.

  3. Lets go through an example to get a better idea.

  4. These are the configurations of elements

  5. Run the application . after it gets deployed, trigger a get request in postman and observe the output

  6. Observer the logger message in console which is because the second flow is triggered for the first request

  7. Send the same request for the second time the response has come.

  8. Notice that the logger has not come this time. This is because the second flow is not triggered.

More Related