<ehcache>
<cache name="query.ContactInfoList"
maxElementsInMemory="200"
eternal="true"
overflowToDisk="false"
timeToIdleSeconds="300"
timeToLiveSeconds="600"
/>
</ehcache>
public List getContactInfoList(){
hibernateTemplate.setCacheQueries(true);
hibernateTemplate.setQueryCacheRegion("query.ContactInfoList");
List list = hibernateTemplate.find("from AdoContactInfo a where active = 1");
hibernateTemplate.setCacheQueries(false);
return list;
}
may i know how to clear/refresh cache for query.ContactInfoList when calling hibernatetemplate saveupdate