If this is a clustered cache, lock the item
Namespace:
NHibernate.CacheAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Sub Lock ( _ key As Object _ ) |
C# |
---|
void Lock( Object key ) |
Visual C++ |
---|
void Lock( Object^ key ) |
JavaScript |
---|
function lock(key); |
Parameters
- key
- Type: System..::.Object
The Key of the Item in the Cache to lock.
Exceptions
Exception | Condition |
---|---|
NHibernate.Cache..::.CacheException |