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 Details

  • Method Details

    • initiateService

      public org.hibernate.internal.util.cache.InternalCacheFactory initiateService(Map<String,Object> configurationValues, org.hibernate.service.spi.ServiceRegistryImplementor registry)
      Specified by:
      initiateService in interface org.hibernate.boot.registry.StandardServiceInitiator<org.hibernate.internal.util.cache.InternalCacheFactory>
    • getServiceInitiated

      public Class<org.hibernate.internal.util.cache.InternalCacheFactory> getServiceInitiated()
      Specified by:
      getServiceInitiated in interface org.hibernate.service.spi.ServiceInitiator<org.hibernate.internal.util.cache.InternalCacheFactory>