Versions Compared

Key

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

...

Example

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

See Also