gateway cache table logic

Created by Jerry Wang, last modified on Jun 19, 2015

gateway系统首先会检查自己的 cache table看里面是否有cached的model数据:
clipboard1
clipboard2

接下来gateway会把这个从frontend端cache table里读出来的model的change timestamp和后台的timestamp做比较:
clipboard3

就是frontend这张表里的数据: /IWFND/I_MED_CTC. application第一次运行时,frontend的cache table必定是空的,第一次metadata请求完之后,从后台返回的model数据就存在这张表里。

Backend class:

如果后台MPC_EXT的lv_last_modified和frontend传进来的cached model的last change timestamp一致,就认为model是最新的,不用发送。
clipboard4
否则认为cache应该发送:
clipboard5
如果cache_timestamp 为空,证明frontend系统没有enable cache,这种情况下不需要发送cache model到frontend。
clipboard6

猜你喜欢

转载自blog.csdn.net/i042416/article/details/92990261