Reputation: 21
I am using https://github.com/mediocregopher/radix as my redis client. Previously with go-redis I used redislock for distributed locking. Are there any such package for radix too?
Upvotes: 2
Views: 519
Reputation: 194
you can doit using SETNX
actually that is the way that redislock does it underneath, you can see how do it here. I hope this works for you
Upvotes: 1