ReleaseLock¶
Releases a previously acquired lock.
1 | |
Parameters¶
string key
The shared lock key. Required.
string token
The lock token. Required.
Returns¶
true if the lock was released successfully; otherwise, false.
Remarks¶
The lock token is generated by the $Cache.Lock or $Cache.TryLock method.
Example¶
1 2 3 4 5 6 7 | |