Cache Lookup
When to use
Use this policy when you want to lookup thecache for a key value.
Details
This is similar to Cache Response policy.However, it only looks up the cache and returns the value if found in cache andreturns an empty value if the value is not found in cache. Its does not call thebackend API whether or not the value is found in cache.
Configuration
The configuration fields for the policyare:
[* Indicates a mandatory field]
Name *: Display name of the policy
Description: Description of policy
Enabled: Flag to indicate if the policy is enabled. Ifthis field is not checked, the policy will be ignored at runtime and any fields fromits output will contain a default initial value
Continue on Error: Flag to indicate that the flow should continueeven if this policy throws an error
Lookup Timeout in seconds: Maximum time the cache lookup will last. If thecache is not found within this time, the backend API call will be make and data willbe retrieved from the backend API call.
cacheKey: Key based on which cache lookup isdone
Output fields
status: returns boolean true if the data is found incache, otherwise returns false
Cache value: value found in cache