spring-framework / org.springframework.cache.ehcache / EhCacheFactoryBean / setCacheEntryFactory

setCacheEntryFactory

open fun setCacheEntryFactory(cacheEntryFactory: CacheEntryFactory): Unit

Set an EhCache net.sf.ehcache.constructs.blocking.CacheEntryFactory to use for a self-populating cache. If such a factory is specified, the cache will be decorated with EhCache's net.sf.ehcache.constructs.blocking.SelfPopulatingCache.

The specified factory can be of type net.sf.ehcache.constructs.blocking.UpdatingCacheEntryFactory, which will lead to the use of an net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCache.

Note: Any such self-populating cache is automatically a blocking cache.

See Also
net.sf.ehcache.constructs.blocking.SelfPopulatingCachenet.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCachenet.sf.ehcache.constructs.blocking.UpdatingCacheEntryFactory