Called after an item has been inserted (before the transaction completes), instead of calling Evict().
Namespace: NHibernate.CacheAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
bool Insert( CacheKey key, Object value, Object currentVersion ) |
Visual Basic |
---|
Function Insert ( _ key As CacheKey, _ value As Object, _ currentVersion As Object _ ) As Boolean |
Visual C++ |
---|
bool Insert( CacheKey^ key, Object^ value, Object^ currentVersion ) |
Parameters
- key
- Type: NHibernate.Cache..::..CacheKey
[Missing <param name="key"/> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Insert(NHibernate.Cache.CacheKey,System.Object,System.Object)"]
- value
- Type: System..::..Object
[Missing <param name="value"/> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Insert(NHibernate.Cache.CacheKey,System.Object,System.Object)"]
- currentVersion
- Type: System..::..Object
[Missing <param name="currentVersion"/> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Insert(NHibernate.Cache.CacheKey,System.Object,System.Object)"]
Return Value
[Missing <returns> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Insert(NHibernate.Cache.CacheKey,System.Object,System.Object)"]
Remarks
This method is used by "synchronous" concurrency strategies.