Class QuarkusInternalCacheFactoryInitiator
java.lang.Object
io.quarkus.hibernate.orm.runtime.service.internalcache.QuarkusInternalCacheFactoryInitiator
- All Implemented Interfaces:
org.hibernate.boot.registry.StandardServiceInitiator<org.hibernate.internal.util.cache.InternalCacheFactory>,org.hibernate.service.spi.ServiceInitiator<org.hibernate.internal.util.cache.InternalCacheFactory>
public final class QuarkusInternalCacheFactoryInitiator
extends Object
implements org.hibernate.boot.registry.StandardServiceInitiator<org.hibernate.internal.util.cache.InternalCacheFactory>
Override of
InternalCacheFactoryInitiator:
this switches the internal cache implementation (currently used for some stats and, crucially, for the
QueryInterpretationCache
to use Caffeine rather than the legacy implementation Hibernate ORM normally uses, which is based on the excellent LIRS
algorithm but which we
plan to deprecate in favour of modern caching libraries.
See also LIRS and
Caffeine, efficiency.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionClass<org.hibernate.internal.util.cache.InternalCacheFactory> org.hibernate.internal.util.cache.InternalCacheFactoryinitiateService(Map<String, Object> configurationValues, org.hibernate.service.spi.ServiceRegistryImplementor registry)
-
Field Details
-
INSTANCE
-
-
Method Details
-
initiateService
public org.hibernate.internal.util.cache.InternalCacheFactory initiateService(Map<String, Object> configurationValues, org.hibernate.service.spi.ServiceRegistryImplementor registry) - Specified by:
initiateServicein interfaceorg.hibernate.boot.registry.StandardServiceInitiator<org.hibernate.internal.util.cache.InternalCacheFactory>
-
getServiceInitiated
- Specified by:
getServiceInitiatedin interfaceorg.hibernate.service.spi.ServiceInitiator<org.hibernate.internal.util.cache.InternalCacheFactory>
-