Class RedissonCacheDefaults

java.lang.Object
com.axelor.cache.redisson.RedissonCacheDefaults

public final class RedissonCacheDefaults extends Object
Default Hibernate second-level cache region settings for Redisson region factories.

This mirrors the Caffeine defaults defined in application.conf. Any hibernate.cache.redisson.* settings defined in the application configuration take precedence.

  • Method Details

    • applyHibernateRegionDefaults

      public static void applyHibernateRegionDefaults(String regionFactoryClassName, Properties properties)
      Applies default cache region settings if the given region factory is Redisson-based.

      Settings already present in the given properties are left untouched.

      Parameters:
      regionFactoryClassName - the configured hibernate.cache.region.factory_class
      properties - the Hibernate properties