Update README.md

master
Andrew Coleman 2014-12-22 15:59:56 -06:00
parent 2fa8c73710
commit 5c644543d0
1 changed files with 2 additions and 3 deletions

View File

@ -46,8 +46,7 @@ Locking Algorithm
* Set value in Redis if it does not exist
* If it exists, wait up to 100 times until :timeout has been met
* Once waiting for lock has finished, either:
** Pessimistically throw an exception if not met
** Overwrite existing token with new value and assume ownership
* Pessimistically throw an exception if lock was not released and configured to do so
* Overwrite existing token with new value and assume ownership if configured to do so
* Run block of code
* Release lock if it contains the same value that it was set to