java - why is org.hibernate.cache.Cache deprecated? -


not org.hibernate.cache.cache.cacheprovider deprecated.

if these how supposed create our own custom caching solutions ? alternate method ?

the javadoc explains it:

the legacy (and deprecated) approach caching defined cacheprovider , cache interfaces cacheconcurrencystrategy interface along various implementations of these interfaces. in scheme, cacheprovider defined how configure , perform lifecycle operations in regards particular underlying caching library; defined how build cache instances in turn defined how access "regions" of underlying cache instance. entity , collection data cache regions, cacheconcurrencystrategy wrapped access cache regions apply transactional/concurrent access semantics.

the improved approach based on regionfactory, various region specializations , 2 access strategies contracts (entityregionaccessstrategy , collectionregionaccessstrategy).

to sum up, there new improved api should use.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -