title: How to configure write behind with Caffeine cache?
body: <p>I want to use Caffeine for caching and I need to have a write-behind. I want to limit the amount of times I write to the database. The <a href="https://github.com/ben-manes/caffeine/wiki/Writer" rel="nofollow">documentation</a> speaks of <em>write-back cache</em> so it should be possible, but there is no example there on how to configure it. I have implemented a <code>CacheWriter</code>, but I don't understand how to configure it to for example only call the writer once every 10 seconds (If something changed to the cache ofcourse).</p>