title: Ehcache Element lifetime in cache
body: <p>Image making a Spring service, in the following manner:</p>
  
  <pre>
  +--------+           +---------+             +---------+
  |Backend | --------- | My      | ----------- | Clients |
  |service |           | service |             |         |
  +--------+           +---------+             +---------+
  </pre>
  
  <p>In order not to make too much requests to the backend, I use Ehcache.
  Imagine that my service is a sports portal, and I cache the results so that when a client requests them, I return the cache, if there's no cache, I fetch the info from backend, put it in cache, and then return it to the client.</p>
  
  <p>Now, If I have these parameters set</p>
  
  <pre><code>long timeToLiveSeconds
  long timeToIdleSeconds
  </code></pre>
  
  <p>and the clients make requests too often, the <code>timeToIdleSeconds</code> won't expire, but the <code>timeToLiveSeconds</code> will expire anyway and the element will be removed from the cache in which I've put it, right? </p>