README.md in redlock-1.0.1 vs README.md in redlock-1.1.0

- old
+ new

@@ -106,13 +106,13 @@ rescue Redlock::LockError # error handling end ``` -The above code will also acquire the lock if the previous lock has expired and the lock is currently free. Keep in mind that this means the lock could have been acquired by someone else in the meantime. To only extend the life of the lock if currently locked by yourself, use the `extend_life` parameter: +The above code will also acquire the lock if the previous lock has expired and the lock is currently free. Keep in mind that this means the lock could have been acquired and released by someone else in the meantime. To only extend the life of the lock if currently locked by yourself, use the `extend_only_if_locked` parameter: ```ruby -lock_manager.lock("resource key", 3000, extend: lock_info, extend_life: true) +lock_manager.lock("resource key", 3000, extend: lock_info, extend_only_if_locked: true) ``` ## Redis client configuration `Redlock::Client` expects URLs or Redis objects on initialization. Redis objects should be used for configuring the connection in more detail, i.e. setting username and password.