Called after an item has been updated (before the transaction completes), instead of calling Evict().

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

Syntax

C#
bool Update(
	CacheKey key,
	Object value,
	Object currentVersion,
	Object previousVersion
)
Visual Basic
Function Update ( _
	key As CacheKey, _
	value As Object, _
	currentVersion As Object, _
	previousVersion As Object _
) As Boolean
Visual C++
bool Update(
	CacheKey^ key, 
	Object^ value, 
	Object^ currentVersion, 
	Object^ previousVersion
)

Parameters

key
Type: NHibernate.Cache..::..CacheKey

[Missing <param name="key"/> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Update(NHibernate.Cache.CacheKey,System.Object,System.Object,System.Object)"]

value
Type: System..::..Object

[Missing <param name="value"/> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Update(NHibernate.Cache.CacheKey,System.Object,System.Object,System.Object)"]

currentVersion
Type: System..::..Object

[Missing <param name="currentVersion"/> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Update(NHibernate.Cache.CacheKey,System.Object,System.Object,System.Object)"]

previousVersion
Type: System..::..Object

[Missing <param name="previousVersion"/> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Update(NHibernate.Cache.CacheKey,System.Object,System.Object,System.Object)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Update(NHibernate.Cache.CacheKey,System.Object,System.Object,System.Object)"]

Remarks

This method is used by "synchronous" concurrency strategies.

See Also