Caches data that is sometimes updated while maintaining the semantics of "read committed" isolation level. If the database is set to "repeatable read", this concurrency strategy almost maintains the semantics. Repeatable read isolation is compromised in the case of concurrent writes. This is an "asynchronous" concurrency strategy.

Namespace: NHibernate.Cache
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public class ReadWriteCache : ICacheConcurrencyStrategy
Visual Basic
Public Class ReadWriteCache _
	Implements ICacheConcurrencyStrategy
Visual C++
public ref class ReadWriteCache : ICacheConcurrencyStrategy

Remarks

If this strategy is used in a cluster, the underlying cache implementation must support distributed hard locks (which are held only momentarily). This strategy also assumes that the underlying cache implementation does not do asynchronous replication and that state has been fully replicated as soon as the lock is released. for a faster algorithm

Inheritance Hierarchy

System..::..Object
  NHibernate.Cache..::..ReadWriteCache

See Also