![]() In order to make an entity eligible for second-level caching, we'll annotate it with the Hibernate specific annotation, and specify a cache concurrency strategy. The loaded instance state is also stored in the L2 cache if it wasn't already there. Once the instance is stored in the persistence context (first-level cache), it's returned from there in all subsequent calls within the same session until the session is closed, or the instance is manually evicted from the persistence context.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |