[Index]
The UC Application Data Cache provides a mechanism to cache data from the UC applications for use in the VOSS-4-UC to improve performance. It is highly configurable to ensure the setup can be tailored to best match the solution needs.
A Cache Control Policy exposes various settings to control when:
The Cache Control Policy is available only to a global administrator or higher, and allows for the customization and fine-tuning of the caching behavior of the system:
The System Default instance of data/CacheControlPolicy always exists and applies to a model by default. A Cache Control Policy can also be created per hierarchy level.
A Cache Control Policy can therefore be:
The Cache Control Policy controls how data is read from the system:
Cache only: Unless overridden within the request, instance reads via the API always return the cached version of data. There is no need for the client to query the uncached instance data.
Cache then device: The API will return the cached data, the GUI will indicate that the data shown is cached and will automatically make an API call requesting non-cached data. It is up to external clients to query the data requesting non-cached data. If this option is selected, data is loaded into the system in two steps:
The 'cached' visual indicator is displayed until the second step is complete.
The device data overrides the previously displayed data unless the user has made an input:
Data is validated constantly as displayed values change, and validation status always reflects the very latest state.
Manual: Unless overridden within the request, instance reads via the API always return the cached version of data. An external client using the API needs to provide a button to allow the user to manually retrieve non-cached data.
No cache: Unless overridden within the request, instance reads via the API always return the uncached version of data that is queried from the device. In this mode the GUI will not show any data until it is retrieved from the device.
For Relation model types, the relation's cache control policy will filter down to the joined device models. For example:
Defines rules regarding when data is retrieved from cache or directly from a device
Title | Description | Details | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name * | A textual identifier for this instance. |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Description | A summary of the purpose of this policy. |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Assigned Models | A list of models that must specifically use this cache control policy. |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Model Type * | The model type of the assigned model |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Model Attribute * | The name of the attribute that is used to identify the assigned data model |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Value * | The value of the assigned model instance |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Default | The default policy for this instance. |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Cache Policy for Reads * |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Read Before Write |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Read After Write |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Model Specific | Policy overrides per model. |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Overrides |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Model Type |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Cache Policy for Reads * |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Read Before Write |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Read After Write |
|