Syvizo

Cache Lookup



When to use

Use this policy when you want to lookup the cache 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 and returns an empty value if the value is not found in cache. Its does not call the backend API whether or not the value is found in cache. 



Configuration

The configuration fields for the policy are:

[* Indicates a mandatory field]

Name *: Display name of the policy

Description: Description of policy

Enabled: Flag to indicate if the policy is enabled. If this field is not checked, the policy will be ignored at runtime and any fields from its output will contain a default initial value

Continue on Error: Flag to indicate that the flow should continue even if this policy throws an error

Lookup Timeout in seconds: Maximum time the cache lookup will last. If the cache is not found within this time, the backend API call will be make and data will be retrieved from the backend API call.



Input fields

cacheKey: Key based on which cache lookup is done



Output fields

status: returns boolean true if the data is found in cache, otherwise returns false

Cache value: value found in cache