Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

boolean my$Cache$Cache.ReleaseLock(key: string, token: string)

...

string token
Lock token. Required.

Returns

...

Remarks

Lock token is generated by $Cache.Lock or $Cache.TryLock method.

Example

Code Block
languagejs
$Cache.Set('myint', 4);
var tokenValue = $Cache.TryLockLock('myintmylock');
if (tokenValue != null) try {
  // Locked code block
}
finally{
  $Cache.ReleaseLock('myintmylock',tokenValue1tokenValue);
} else {   //
Already locked  
}

Examples

...

languagejs

...

See Also