title: Expiry time @cacheable spring boot
body: <p>I have implemented a cache and now I want to add an expiry time.</p>
  
  <p>How can I set an expiry time in spring boot with <code>@Cacheable</code>? </p>
  
  <p>This is a code snippet:</p>
  
  <pre><code>@Cacheable(value="forecast",unless="#result == null")
  </code></pre>