danielstjules / redislock

Node distributed locking using redis
MIT License
110 stars 32 forks source link

Added Lock.extend #1

Closed manuelmhtr closed 9 years ago

manuelmhtr commented 9 years ago

Added extend method, which enables locks to extend its timeout. It's very useful for continuos processes when rather than set a timeout you want to refresh its lock constantly.

danielstjules commented 9 years ago

Looks awesome, thanks! :smile: Could you update the PR to use 2-space indentation in lib/errors?

manuelmhtr commented 9 years ago

:O true! It's ready now. By the way, this is my use case for the extend: https://www.npmjs.com/package/solo-worker

danielstjules commented 9 years ago

solo-worker looks cool :) I've got a few changes I want to make to redislock. Once done, I'll tag and release a new version.

Thanks again!

manuelmhtr commented 9 years ago

Great! :+1:

danielstjules commented 9 years ago

Added specs and published a new version. Made it a minor release (1.1.0) since it added a new feature.