Method Unlock
Unlock(String)
Forcefully unlocks a locked cached item.
Declaration
public virtual void Unlock(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | key of a cached item to be unlocked |
Examples
Following example demonstrates how to unlock a cached item.
...
theCache.Unlock("cachedItemKey");
...
Unlock(String, LockHandle)
Unlocks a locked cached item if the correct lock-id is specified.
Declaration
public virtual void Unlock(string key, LockHandle lockHandle)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | key of a cached item to be unlocked |
LockHandle | lockHandle | An instance of |
Examples
Following example demonstrates how to unlock a cached item.
...
theCache.Unlock("cachedItemKey", lockHandle);
...