If this is a clustered cache, lock the item

Namespace:  NHibernate.Cache
Assembly:  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

See Also