Forcefully unlocks a locked cached item.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)

Syntax

C#
public override void Unlock(
	string key
)
Visual Basic
Public Overrides Sub Unlock ( _
	key As String _
)
Visual C++
public:
virtual void Unlock(
	String^ key
) override

Parameters

key
Type: System..::..String
key of a cached item to be unlocked

Examples

Following example demonstrates how to unlock a cached item.
CopyC#
...
theCache.Unlock("cachedItemKey");
...

See Also