Forcefully unlocks a locked cached item.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
public virtual void Unlock( string key ) |
Visual Basic |
---|
Public Overridable Sub Unlock ( _ key As String _ ) |
Visual C++ |
---|
public: virtual void Unlock( String^ key ) |
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");
...