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.CacheAssembly: 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