We are going to attempt to update/delete the keyed object
Namespace: NHibernate.CacheAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
ISoftLock Lock( CacheKey key, Object version ) |
Visual Basic |
---|
Function Lock ( _ key As CacheKey, _ version As Object _ ) As ISoftLock |
Visual C++ |
---|
ISoftLock^ Lock( CacheKey^ key, Object^ version ) |
Parameters
- key
- Type: NHibernate.Cache..::..CacheKey
The key
- version
- Type: System..::..Object
[Missing <param name="version"/> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Lock(NHibernate.Cache.CacheKey,System.Object)"]
Return Value
[Missing <returns> documentation for "M:NHibernate.Cache.ICacheConcurrencyStrategy.Lock(NHibernate.Cache.CacheKey,System.Object)"]
Remarks
This method is used by "asynchronous" concurrency strategies.
Exceptions
Exception | Condition |
---|---|
NHibernate.Cache..::..CacheException |