缓存更适合需求请求, 缓存中需要的缓存数据会缓存缓存缓存中的数据。 通常会存储在存储中, 过一段时间后清除它, 以避免您无法在断开模式下运行的缓存数据 。 另外一个替代方案更适合断开模式, 将所需的数据预发到本地缓存中, 在某些执行中, 将尝试将其与远程数据库同步 。 这样您仍然可以在断开模式下运行, 但您可能会看到缓存数据 。
You can think of the same semantics in IMDG (In memory data grids) where a remote client can cache the data on demand or pre-fetch the data and have it synchronized with the remote IMDG asynchronously behind the scenes.
GigaSpaces XAP provides exactly this capabilities with its in memory data grid, the first on demand caching concept is called Local Cache while the second pre-fetching concept is called Local View where you specify upon creation which type of data should be preloaded and behind the scenes it will be kept synchronized with changes done in the data grid.
http://www.gigaspaces.com/datagrid
http://www.gigaspaces.com/wiki/display/XAP9/Client+Side+Caching
Eitan 爱坦