Hi,
With Ehcache 3, what's the recommended way to pre-fetch `some` items in the cache on start up?
I am using CacheLoaderWriter<> for my caches.
CacheManager cacheManager = CacheManagerBuilder.newCacheManagerBuilder().build(true);
cacheWriteBehind = cacheManager.createCache("cacheWriteBehind",
CacheConfigurationBuilder.newCacheConfigurationBuilder(K.class, V.class, ResourcePoolsBuilder.newResourcePoolsBuilder().heap(answerCacheSize, EntryUnit.ENTRIES))
.withLoaderWriter(cacheLoaderWriter)
.add(WriteBehindConfigurationBuilder
.newBatchedWriteBehindConfiguration(10, TimeUnit.SECONDS, 10)
.queueSize(100)
.concurrencyLevel(1)
.enableCoalescing())
.build());
Found a couple of links for doing it in Ehcache 2 via Spring:
http://stackoverflow.com/questions/27940704/how-to-load-cache-on-startup-in-spring
Regards,
Nikunj Lahoti
--
You received this message because you are subscribed to the Google Groups "ehcache-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ehcache-user...@googlegroups.com.
To post to this group, send email to ehcach...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ehcache-users/c0f80d37-1788-4285-aef7-d71de31a28f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.