Our cache is only useful if it is accurate, so we need to make sure that it is in sync with our server.
必须确保缓存是准确的,因此需要确保它与服务器同步。
Fortunately, looking up a cache in a remote server will not work, so applications can only see caches that are being replicated to their server.
幸运的是,不能查找远程服务器中的缓存,因此应用程序只能看到复制到其服务器上的缓存。
The UI will not be quite as responsive, but that way, we only update it and the cache when there is a successful update to the server.
该 UI 的响应能力并不十分强大,但是用这种方法,我们只需在成功更新服务器时更新 UI 和缓存。
应用推荐