- Create a new cahce region bean in core-cache.xml spring file. The below code is to cache only the products
<constructor-arg name="name"
value="productCacheRegion" / >
<constructor-arg name="maxEntries" value="50000"
/ >
<constructor-arg
name="evictionPolicy" value="LFU" / >
<property
name="handledTypes" >
<array >
<value>1</value >
</array >
</property >
</bean >
- Access caching by using the DefaultCacheController
No comments:
Post a Comment