Do not add an item to the cache unless the current transaction timestamp is later than the timestamp at which the item was invalidated. (Otherwise, a stale item might be re-added if the database is operating in repeatable read isolation mode.)

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

Syntax

C#
public bool Put(
	CacheKey key,
	Object value,
	long txTimestamp,
	Object version,
	IComparer versionComparator,
	bool minimalPut
)
Visual Basic
Public Function Put ( _
	key As CacheKey, _
	value As Object, _
	txTimestamp As Long, _
	version As Object, _
	versionComparator As IComparer, _
	minimalPut As Boolean _
) As Boolean
Visual C++
public:
virtual bool Put(
	CacheKey^ key, 
	Object^ value, 
	long long txTimestamp, 
	Object^ version, 
	IComparer^ versionComparator, 
	bool minimalPut
) sealed

Parameters

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

[Missing <param name="key"/> documentation for "M:NHibernate.Cache.ReadWriteCache.Put(NHibernate.Cache.CacheKey,System.Object,System.Int64,System.Object,System.Collections.IComparer,System.Boolean)"]

value
Type: System..::..Object

[Missing <param name="value"/> documentation for "M:NHibernate.Cache.ReadWriteCache.Put(NHibernate.Cache.CacheKey,System.Object,System.Int64,System.Object,System.Collections.IComparer,System.Boolean)"]

txTimestamp
Type: System..::..Int64

[Missing <param name="txTimestamp"/> documentation for "M:NHibernate.Cache.ReadWriteCache.Put(NHibernate.Cache.CacheKey,System.Object,System.Int64,System.Object,System.Collections.IComparer,System.Boolean)"]

version
Type: System..::..Object

[Missing <param name="version"/> documentation for "M:NHibernate.Cache.ReadWriteCache.Put(NHibernate.Cache.CacheKey,System.Object,System.Int64,System.Object,System.Collections.IComparer,System.Boolean)"]

versionComparator
Type: System.Collections..::..IComparer

[Missing <param name="versionComparator"/> documentation for "M:NHibernate.Cache.ReadWriteCache.Put(NHibernate.Cache.CacheKey,System.Object,System.Int64,System.Object,System.Collections.IComparer,System.Boolean)"]

minimalPut
Type: System..::..Boolean

[Missing <param name="minimalPut"/> documentation for "M:NHibernate.Cache.ReadWriteCache.Put(NHibernate.Cache.CacheKey,System.Object,System.Int64,System.Object,System.Collections.IComparer,System.Boolean)"]

Return Value

Whether the item was actually put into the cache

Implements

ICacheConcurrencyStrategy..::..Put(CacheKey, Object, Int64, Object, IComparer, Boolean)

See Also