In the Cache Control builder's Keys
input you can specify a method-type action or variable in your model as a cache key.
This ability is useful when you have a method that does not take arguments, or the arguments that a method does take are not appropriate for use as a cache key. This might be the case if a method gets an input argument value from a variable or from another method. This builder allows you to use such alternatives to the arguments passed to the method.
You use an indirect reference picker in the Keys
input to select one or more model actions. When the builder detects a difference in the value of a key, the cache will be refreshed.
A typical use case for a key is provided by a WSDL service call. Here an invoke method (that takes no arguments) is used to invoke the WSDL service. When the results of the service action need to be updated, a key that references values stored in variables fetched by this method can be used to initiate the cache update. When a value changes, the service is rerun to return a new result.
Parent topic: Cache Control builder