Use the dynamic cache service
Use the dynamic cache service to improve application performance by caching the output of servlets, Web services, and WAS commands into memory.
Develop a cache policy for the application. The cache policy defines rules for what responses to cache and the amount of time the responses should be held in the cache.
The dynamic cache service is enabled by default. We can configure the default cache instance, as follows:
- Click...
Servers | Server Types | WebSphere appservers | server_name | Container services | Dynamic cache service
- Set the default cache instance or follow the links to enable servlet or portlet caching.
Next steps
We might want to enable dynamic cache disk offload. This option moves cache entries that are expired from memory to disk for potential future access.
Dynamic cache service settings
Set servlet caching
Set portlet fragment caching
Set portlet fragment caching with wsadmin
Set caching for Struts and Tiles applications
Set dynamic cache disk offload
Set Edge Side Include caching
Set external cache groups
Related tasks
Set servlet caching
Set cache replication
Task overview: Using the dynamic cache service to improve performance
Use the DistributedMap and DistributedObjectCache interfaces for the dynamic cache