By default, NHibernate cache

Is caching of object cache / entity related to 1st and 2nd level caches or only second level cache?

What happens by default: query caching or object caching?

+3
source share
1 answer

Layer 1 cache is enabled by default and provides object caching for an NH session instance. Each individual NH session has its own level 1 cache.

The second-level cache (which must be configured) provides caching of objects through sessions, and also provides caching of requests upon request.

This link has additional information: http://nhibernate.info/doc/nhibernate-reference/caches.html

+7

Source: https://habr.com/ru/post/1774798/


All Articles