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?
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?
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