taoensso / carmine

Redis client + message queue for Clojure
https://www.taoensso.com/carmine
Eclipse Public License 1.0
1.15k stars 130 forks source link

carmine.locks/acquire-lock: remove lua scripts? #177

Closed hexpunk closed 7 years ago

hexpunk commented 7 years ago

The comment in the code mentions waiting for https://github.com/antirez/redis/issues/931 to be resolved. Well, it's resolved now. 🙂 You can use SET with nx and ex all in one call as of Redis 2.6.12.

ptaoussanis commented 7 years ago

Hi there, updating this code isn't a major priority atm since it's working as it is (and supports folks with older Redis servers). Appreciate you checking though, cheers :-)