This is the manual for older MicroStream versions (Version < 5.0).
The new documentation (Version >= 5.0) is located at:
First of all add the MicroStream Cache dependency:
The core caching abstraction provided by Spring comes in the spring-context module.
If you use Spring Boot, then add the spring-boot-starter-cache package to add the caching dependencies:
To enable caching, Spring makes good use of annotations, much like enabling any other configuration level feature in the framework. The caching feature can be enabled by simply providing a cache setup component.
More information about the Spring Cache Abstraction: https://docs.spring.io/spring/docs/current/spring-framework-reference/integration.html#cache
This is the manual for older MicroStream versions (Version < 5.0).
The new documentation (Version >= 5.0) is located at:
This is the manual for older MicroStream versions (Version < 5.0).
The new documentation (Version >= 5.0) is located at:
MicroStream offers a Hibernate cache region factory, which can be found in the cache.hibernate
module.
The region factory's class name is one.microstream.cache.hibernate.CacheRegionFactory
.
It is configured via the property hibernate.cache.region.factory_class
.
Depending on your environment it can be configured in different ways.
If you use a good old persistence.xml, set the property there:
Or for Spring applications: