Invalidating cached data objects in write-through operations
摘要:
A request for a write action to be perform a data entity persisted in primary data sources is received. It is determined whether data changes to the data entity are tracked based on an object version key (OVK) definition of a target data object type. If the data changes to the data entity are tracked based on the OVK definition, an OVK key is generated, based on the OVK definition, from data field values specified in the request for the write action. An OVK version number for the data entity is updated, the OVK version number being identified by the OVK key. A cached data object of the target data object type is caused to be invalidated by the updated OVK version number, the cached data object of the target data object type being derived based on underlying data in the data entity persisted in the primary data sources.
信息查询
0/0