Add an item to the cache

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

Syntax

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

Parameters

key
Type: NHibernate.Cache..::.CacheKey
value
Type: System..::.Object
txTimestamp
Type: System..::.Int64
version
Type: System..::.Object
versionComparator
Type: System.Collections..::.IComparer
minimalPut
Type: System..::.Boolean

Implements

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

See Also