bsm / redislock

Simplified distributed locking implementation using Redis
Other
1.45k stars 157 forks source link

redis/v8 support #42

Closed jose-zenledger closed 2 years ago

jose-zenledger commented 2 years ago

I am following the example listed in the go doc but getting an error when passing the v8 redis client to redislock.New(client). It is saying it's missing ScriptExists(scripts ...string) *redis.BoolSliceCmd because the method in v8 has the context as the first param. Let me know if you are seeing the same thing and if you want me to make a PR

jose-zenledger commented 2 years ago

Looks like master already updated the interface but when I add you package I get v8.0.0, is that the latest version?

jose-zenledger commented 2 years ago

nvm was using redis-lock by mistake