Overview
Releases previously acquired lockboolean $Cache.ReleaseLock(key: string, token: string)
Arguments
string key
Shared lock key. Required.
string token
Lock token. Required.
Returns
True if lock has released, otherwise false.Remarks
Lock token is generated by $Cache.Lock or $Cache.TryLock method.
Example
$Cache.Set('myint', 4); var tokenValue = $Cache.TryLock('myint'); if (tokenValue != null) { // Locked code block $Cache.ReleaseLock('myint',tokenValue1); } else { // Already locked }