bsm / redislock

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

No provision for using KeepTTL option of redis server itself #41

Closed kuilasaurav closed 2 years ago

kuilasaurav commented 2 years ago

I was trying to use the libray to lock a resource perpetually without a TTL we can do that using the redis.KeepTTL (-1) option in the go-redis library directly in the SetNX, SetXX but the libray does not allow it even while using SetNX function of RedisClient interface