
adrianphinney.com
Adrian PhinneyAutomatically Busting NHibernate Cache. October 22, 2014. Caching in NHibernate is awesome. But, what happens if your schema changes and your cache isn’t cleared? For example, if you practice hot compatibility with your application (running two versions concurrently), you don’t want your app to blow up if a column was added in the new version and the old cache isn’t aware of it. Public class BlogMapping : ClassMap Blog { public BlogMapping() { Cache.ReadWrite().Region("Blog.v2"); } }. Var sessionFactory ...
http://www.adrianphinney.com/