Example usage for org.hibernate.cache.jcache ConfigSettings CACHE_MANAGER

List of usage examples for org.hibernate.cache.jcache ConfigSettings CACHE_MANAGER

Introduction

In this page you can find the example usage for org.hibernate.cache.jcache ConfigSettings CACHE_MANAGER.

Prototype

String CACHE_MANAGER

To view the source code for org.hibernate.cache.jcache ConfigSettings CACHE_MANAGER.

Click Source Link

Document

Allows providing `hibernate-jcache` with a custom JCache CacheManager .

Usage

From source file:org.springframework.boot.docs.jpa.HibernateSecondLevelCacheExample.java

License:Apache License

@Bean
public HibernatePropertiesCustomizer hibernateSecondLevelCacheCustomizer(JCacheCacheManager cacheManager) {
    return (properties) -> properties.put(ConfigSettings.CACHE_MANAGER, cacheManager.getCacheManager());

}