|
SecondLevelCache
IntroductionEnabling the second level cache in SimpleJPA is extremely simple and provides huge performance benefits. The second level cache is shared across all EntityManager sessions obtained by an EntityManagerFactory. Any cache can be supported by implementing com.spaceprogram.simplejpa.cache.CacheFactory that can create com.spaceprogram.simplejpa.cache.Cache's. Benefits
Drawbacks
Using the second level cacheThis only requires two things:
That's it. Nothing else is required. Simple huh? |
► Sign in to add a comment
The link in, "Create a cache configuration file and put it in your classpath. You can see an example config file here" isn't working.
Doesn't seem to work with OneToMany? relationship. Queries still occur when getting the objects on the many side of the relationship.