﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on NHibernate 2nd Level Cache</title><description>Glade, 
  
read-only concurrency strategy is... read only.
  
It doesn't support writes.
</description><link>http://ayende.com/3976/nhibernate-2nd-level-cache#comment3</link><guid>http://ayende.com/3976/nhibernate-2nd-level-cache#comment3</guid><pubDate>Fri, 24 Apr 2009 17:14:54 GMT</pubDate></item><item><title>glade commented on NHibernate 2nd Level Cache</title><description>All those missing words are "bag", sucked up in the html soup.
</description><link>http://ayende.com/3976/nhibernate-2nd-level-cache#comment2</link><guid>http://ayende.com/3976/nhibernate-2nd-level-cache#comment2</guid><pubDate>Fri, 24 Apr 2009 15:59:16 GMT</pubDate></item><item><title>glade commented on NHibernate 2nd Level Cache</title><description>Very timely post! We're in the middle of discovery on how we can leverage 2nd level cache.
  
  
Can you spend some time setting expecations when using the read-only concurrency model?   We're looking to leverage our memcached instances with two load balanced app servers. 
  
  
I setup two entities as read-only, one has a 
&lt;bag of the other.  When adding to the collection the ISoftLock .Lock() method is invoked and an exception occurs blocking writing to a read-only entity. 
  
  
It seems to me the read-only model is incomplete, certainly with respect to 
&lt;bag (i assume other collections, this was disheartening enough to stop me in my tracks.)
  
  
The only other conclusion I can reach is the read-only model is intended for read-only nhibernate usage.... not a read-only cache usage.  But that conflicts with using mutable="false" to enable read-only cache for normal application usage... 
  
  
&gt;</description><link>http://ayende.com/3976/nhibernate-2nd-level-cache#comment1</link><guid>http://ayende.com/3976/nhibernate-2nd-level-cache#comment1</guid><pubDate>Fri, 24 Apr 2009 15:56:32 GMT</pubDate></item></channel></rss>