title: Caching large data sets with hibernate/jpa/memcache?
body: <p>I'm new to open source stacks and have been playing with hibernate/jpa/jdbc and memcache.  I have a large data set per jdbc query and possibly will have a number these large data sets where I eventually bind to a chart.</p>
  
  <p>However, I'm very focused on performance instead of hitting the database per page load to display it on my web page chart.</p>
  
  <p>Are there some examples of how (memcache, redis, local or distributed) and where to cache this data (jSON or raw result data) to load in memory? Also I need to figure out how to refresh the cache unless it's a time based eviction marking algorithm (i.e. 30min expires so grab new data from data base query instead of using cache or perhaps an automated feed of data into the cache every xhrs/min/etc).?</p>
  
  <p>Thanks!</p>