From: Gavin K. <ga...@ap...> - 2002-09-18 05:17:12
|
Sorry, don't know quite what you mean. Do you mean when using a = distributed cache? As long as you use it correctly, the read-write cache should maintain = txn isolation ----- Original Message -----=20 From: Christian Meunier=20 To: Gavin King ; hibernate list=20 Sent: Tuesday, September 17, 2002 11:46 PM Subject: Re: [Hibernate] JCS Read only cache and the doc Thanks Gavin about this. Could you describe in which case, using read-write cache we can break = the transaction isolation please , i dont get it. Thanks in advance and sorry to be such a pain ;) Christian Meunier ----- Original Message -----=20 From: Gavin King=20 To: Christian Meunier ; hibernate list=20 Sent: Tuesday, September 17, 2002 2:18 PM Subject: Re: [Hibernate] JCS Read only cache and the doc read-only cache: objects are added to cache when loaded from database attempt to read object from cache before loading them from database throw an exception if we try to update an object read-write cache: objects are added to cache when loaded from database attempt to read object from cache before loading them from database remove the object from the cache if we try to update the object hope that is clearer :) ----- Original Message -----=20 From: Christian Meunier=20 To: Christian Meunier ; hib...@li...=20 Sent: Tuesday, September 17, 2002 1:22 PM Subject: Re: [Hibernate] JCS Read only cache and the doc I realize that i completly misunderstood which kind of cache = Hibernate provides..... At the moment it appears that hibernate provide either: Cache for immutable objects ( called read-only cache ) Cache for mutable objects ( called read-write cache) It was a semantic issue, for me a read-only cache is a cache where = you never write update in the cache but flush it when an object is = updated while read-write cache will update also the cache entry for the = object. Both those caches are caching mutable objects.... In your read-write cache scenario, i guess you are updating the = cache isnt it ? ( a true read-write cache for mutable objects ) Regards Christian Meunier ----- Original Message -----=20 From: Christian Meunier=20 To: hib...@li...=20 Sent: Monday, September 16, 2002 4:50 AM Subject: [Hibernate] JCS Read only cache and the doc Hi, it's me or the documentation is a bit ambiguous about read = only cache ? "If your application needs to read but never modify instances of = a persistent class, a 'readonly' cache may be used" When i read this, i understand that my persistent class need be = to read only if i want to be able to use a read-only cache. Regards Christian Meunier |