Editorial question26K views1,790 votes0 answers612 following
AI-generatedNHibernate second-level cache invalidation behavior with async sessions in version 5.3+
The goal is to decide whether NHibernate’s second‑level cache can be trusted to provide repeatable reads when multiple async ISession instances share the same session factory in a repeatable development or test environment. In NHibernate 5.3+ the async ISession uses FlushMode.Auto, which does not automatically clear the second‑level cache when another thread