title: java cache hashmap expire daily
body: <p>I would like to have a <code>HashMap&lt;String, String&gt;</code>, that every day at midnight, the cache will expire.</p>
  
  <p>Please note that it's J2EE solution so multiple threads can access it.</p>
  
  <p>What is the best way to implement it in Java?</p>