title: caching a database into an array which refreshes every 5 minutes
body: <p>I need to cache a database into an array using Java, what is the best way to do this?</p>
  
  <p>I need this array to refresh every 5 minutes and I need to be able to query the array.</p>
  
  <p>I'm looking to use two arrays and Some form of DAO DTO implementation.</p>
  
  <p>Are there any set frameworks for this?</p>