From 6b738da832a9a7aa61d009711135df6ea3727afe Mon Sep 17 00:00:00 2001 From: Geoff Wagstaff Date: Thu, 19 Jun 2014 18:08:08 +0100 Subject: [PATCH] ProTips --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index a1c6f07..74ca3c2 100644 --- a/README.md +++ b/README.md @@ -47,3 +47,8 @@ warlock.lock(key, ttl, function(err, unlock){ }); ``` + +## ProTips + +* Warlock uses Lua scripting to achieve transactional locking on Redis `v2.6.0` upwards. If you're running Redis `v2.6.12` or above you could use the additional PX and NX arguments for the [SET](http://redis.io/commands/set) operation as an alternative. +* Read my [Distributed locks using Redis](https://engineering.gosquared.com/distributed-locks-using-redis) article and Redis' author's [A proposal for more reliable locks using Redis](http://antirez.com/news/77) to learn more about the theory of distributed locks using Redis.