You need to supplement it with some additional cookies to make a composite cache key.
需要加上一些额外的cookie,形成复合的缓存键。
When you define the sessionid to be part of the cache key, the portlet content is cached on a per user base.
当您将sessionid定义为缓存键的一部分时,Portlet内容是在每个用户的基础上进行缓存。
The cache request mediation generates a cache key based on the request message, and searches for a response in the cache.
缓存请求中介基于请求消息生成缓存键,并在缓存中搜索响应。
Therefore, the cache key for portlets running in WebSphere Application Server is configurable in detail using cachespec.xml.
因此,可以使用cachespec . xml对在WebSphereApplicationServer中运行的Portlet的缓存键进行详细配置。
Data stored in Distributed Map can be accessed by handing over a unique key for the data object, also called the cache key.
通过移交数据对象的唯一密钥(也称为缓存密钥),可以访问存储在分布式映射缓存中的数据。
Now that you know how to cache data using the dynacache infrastructure, let's look at how you can generate the correct cache key in a portlet.
既然您已经了解了如何使用dynacache基础设施缓存数据,现在让我们看一下如何在Portlet中生成正确的缓存键。
Performance can regress for simple portlets because cache key calculation becomes more expensive than recalculating the portlet response again.
对于简单Portlet,由于缓存键计算比重新计算Portlet响应开销更大,其性能可能会降低。
The example bookmark portlet shows how to use the different cache key scopes, and how to store the data with the WebSphere dynacache infrastructure.
示例书签Portlet展示了如何使用不同的缓存键范围,以及如何使用WebSpheredynacache基础设施存储数据。
Now that you know how to create a session-based cache key, let's look into generating a cache that is unique for a portlet window in the next section.
既然已经了解了如何创建基于会话的缓存键,在下一部分中,我们看一下如何生成Portlet窗口的唯一缓存。
Caching multiple views for the same portlet is possible because the cache key contains the relevant information from the navigational state parameters.
由于缓存键包含来自于导航状态参数的相关信息,因此可以缓存同一个Portlet的多个视图。
To support user-scoped caching, the Application Server administrator would need to specify that the cache key within the cachespec.xml use the sessionid.
为了支持按用户缓存,ApplicationServer管理员需要指定 cachespec.xml 中的缓存键使用sessionid。
To support user-scoped caching, the Application Server administrator would need to specify that the cache key within the cachespec.xml use the sessionid.
为了支持按用户缓存,ApplicationServer管理员需要指定 cachespec.xml 中的缓存键使用sessionid。
应用推荐