* Creates a new ResinCache for hibernate.
*/
public Cache buildCache(String regionName, Properties properties)
throws CacheException
{
ClusterCache cache = new ClusterCache();
cache.setName("hibernate:" + regionName);
cache.setExpireTimeoutMillis(1 * DAY);
cache.setLocalReadTimeoutMillis(1000L);
cache.init();
return new ResinCache(regionName, cache);
}