title: Dynamically change ehcache configuration
body: <p>I want to dynamically change the configuration of the EhCache instance we're using, specifically the maxElementsInMemory setting. We are using EhCache 1.5 and I can see that it is possible API-wise:</p>
  
  <pre><code>cache.getCacheConfiguration().setMaxElementsInMemory(num); 
  </code></pre>
  
  <p>But the documentation of EhCache says:</p>
  
  <blockquote>
    <p>After a Cache has been started its
    configuration is not generally
    changeable. However, since Ehcache
    2.0, certain aspects of cache configuration can modified dynamically
    at runtime...</p>
  </blockquote>
  
  <p>So my question is: can I use this API in EhCache 1.5 or is it not guaranteed to work?</p>
  
  <p>Thanks.</p>