2. TheCacheScopeisaMulefeature
forstoringandreusingfrequently
calleddata.TheCacheScopesaves
ontimeandprocessingload.
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.