[Java programming language only]

Configuring a near cache for the dynamic cache

[Version 2.5 and later] You can configure a local near cache to work along with a dynamic cache data grid on the appliance or collective. The near cache uses local Java virtual machine (JVM) resources. Typically, the near cache holds a subset of the data that is in the dynamic cache data grid on the appliance.

Before you begin

Create a dynamic cache data grid. For more information, see Creating dynamic cache data grids.

About this task

To enable the near cache for a dynamic cache data grid, you must set a custom property to set the map template name for the WebSphere Application Server dynamic cache instance.

Procedure

Set the following custom property to enable the near cache. For more information about setting custom properties on the dynamic cache, see Customizing a dynamic cache instance with custom properties.

What to do next

By default, the maximum size of the dynamic near cache corresponds to the maximum number of entries for a single partition in the remote dynamic cache data grid. A least recently used (LRU) eviction algorithm is used to maintain this size. To further control the size of the near cache, you can take the following action: