title: Grails cache-ehcache plugin and TTL values
body: <p>Can anyone confirm if TTL settings e.g. timeToLiveSeconds can be set using the grails cache plugin with the ehcache extension?</p>
  
  <p>The documentation for the base plugin explicitly states that TTL is not supported, but the ehcache extension mentions these values. So far I've had no success setting TTL values for my cache:</p>
  
  <pre><code>grails.cache.config = {
      cache {
          name 'messages'
          maxElementsInMemory 1000
          eternal false
          timeToLiveSeconds 120
          overflowToDisk false
          memoryStoreEvictionPolicy 'LRU'
      }
  }
  
  @Cacheable('messages')
  def getMessages()
  </code></pre>
  
  <p>However the messages remain cached indefinitely. I can manually flush the cache using the @CacheEvict annotation but I was hoping that TTL would be supported when using the ehcache extension.</p>
  
  <p>Thanks</p>