Rajat Kumar
Rajat Kumar

Reputation: 21

Redis distributed locking for radix

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

Answers (1)

Facuellarg
Facuellarg

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

Related Questions