Interface ILockable
This interface contains methods and parameters required for locking data types.
Assembly: Alachisoft.NCache.Client.dll
Syntax
public interface ILockable
              Methods
Lock(TimeSpan)
Acquire a Lock on a collection in cache.
Declaration
bool Lock(TimeSpan timeout)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.TimeSpan | timeout | Duration of Lock on a collection.  | 
                  
Returns
| Type | Description | 
|---|---|
| System.Boolean | True, if Lock was acquired successfully; otherwise false.  | 
                  
Unlock()
Unlock a locked collection.
Declaration
void Unlock()