Package org.hibernate.cache.spi.support

This package provides a framework intended to reduce the work needed to implement a caching provider. It takes care of most of the "grunt work" associated with the implementation, leaving the integrator to implement the interfaces StorageAccess and DomainDataStorageAccess.

A typical integration would provide:

  1. a custom StorageAccess or DomainDataStorageAccess, along with
  2. a custom RegionFactoryTemplate.

The preferred way to register these implementations to Hibernate is via a custom StrategyRegistrationProvider.

Examples of using this support package to implement a caching provider include:

  • org.hibernate.testing.cache.CachingRegionFactory in hibernate-testing, and
  • org.hibernate.cache.jcache.internal.JCacheRegionFactory in hibernate-jcache.