通过应用缓存,使用静态存根与基于适配器的解决方案之间的差异相对较小。
With caching, the performance difference between using static stubs and adapter-based solutions is fairly minor.
最近,微软发布了Velocity的最新版本,Velocity是一个分布式内存应用缓存平台。
Microsoft has released a new version of Velocity, a distributed in-memory application caching platform.
应用程序缓存允许你预先告诉浏览器,网页上的哪些资源需要离线使用。
The application cache allows you to tell the browser in advance what resources a web page will need offline.
图17显示了应用请求端缓存模式后的序列关系图。
Figure 17 shows the sequence diagram after having applied the requester-side caching pattern.
众所周知应用程序缓存很难调试。
离线的时候,通常没有浏览视图,但是你可以设置应用也把这个缓存下来。
The web view is usually not available offline, but you can set the app to cache that as well.
此示例应用程序按照对象缓存与状态处理所述演示对象缓存和JSR168 状态处理概念的应用。
This sample application illustrates object caching and the exploitation of JSR168 state handling concepts, as discussed in Object caching and state handling.
一些浏览器现在具有应用程序缓存。
最终,最好的回答是不在应用程序中缓存,而是缓存于容器当中。
The best answer ultimately is to not cache in the application, but rather to cache in the container.
众所周知应用程序缓存很难调试。这里有本书提供了一些检查你的应用程序缓存状态的好方法。
The application cache is notoriously hard to debug. This book has some good methods for checking your application cache status.
可以为应用程序调整缓存和性能。
You can make cache and performance tweaks to the application.
这台远程缓存服务器可以被多个JCS客户端应用程序用于存储缓存数据。
The remote cached server can be used by multiple JCS client applications to store the cached data.
我们将在下文介绍,应用程序仅与缓存对话,缓存则与磁盘对话。
As will be discussed later, the application talks only to the cache, and the cache talks to the disk.
该选项可用于缓存预热(在应用上线之前填满缓存)和定期的批量加载。
This option can be used for the use cases like cache warming where caches need to be filled before bringing an application online and for periodic batch loading.
同样,在实际应用中,缓存状态文件可用于验证缓存清理,如下所示。
Again, in a practical application, the cache state file can be used to validate cache clearing as shown below.
使用文档元素(例如html)的manifest属性为应用程序建立缓存。
Use the manifest attribute on the document element (for example, html) to establish a cache for your application.
图10显示了应用请求端缓存模式前的Catalog实体设计模型。
Figure 10 shows the catalog entity design model before applying the requester-side caching pattern.
附录d:Portlet缓存示例应用程序。
动态缓存网格存储来自利用WebSphere 动态缓存 APIs或基于容器的缓存的应用程序的可缓存对象。
Dynamic cache grids store cacheable objects from applications that utilize the WebSphere dynamic cache APIs or container-based caching.
当你将这些设置妥当时,就在支持应用程序缓存的浏览器里测试一下吧。
When you have this all setup, check it out in a browser that supports the application cache.
如果我们现在还这样做的话,那么我们则将停止当前正在运行的应用程序缓存程序。
If we did this now, we would stop the application caching programs that are currently running.
而且,并非所有应用程序都会从缓存受益。
通常,在应用程序中使用缓存有两个原因。
Generally, you would use caching in your application for two reasons.
缓存与应用程序占用相同的可寻址内存空间。
The cache occupies the same addressable memory space as the applications.
即使只是添加一条注释都会提醒浏览器更新应用程序缓存。
Even adding a comment will prompt the browser to update the application cache.
类似地,软引用也经常用于GUI应用程序中,用于缓存位图图形。
Similarly, soft references are also often used in GUI applications for caching bitmap graphics.
数据网格是用于存储可缓存应用程序数据的容器。
Data grids are the containers used to store cacheable application data.
其次,了解用户何时联机又何时脱机,这样便可以执行应用程序自动缓存管理以外的任何任务。
The second puzzle piece is knowing when the user goes online or offline so you can perform any tasks not covered by the automatic application cache management.
创建过程涉及一个关键文件:您的应用程序的缓存清单。
One key file is involved: the cache manifest for your application.
应用程序对其缓存对象是否过于慷慨?
应用推荐