e-chip / redis-rwlock

Golang implementation of distributed RW-Lock (Writer-preferring) using Redis.
MIT License
20 stars 6 forks source link

Update redis client v9 #10

Open GerritErpenstein opened 1 year ago

GerritErpenstein commented 1 year ago

Update official redis client to v9. Go version 1.17 is required as a minimum. The API had to be changed slightly to pass the context. Beyond that, no changes were made to the logic.

For those who find this pull request before the changes are merged into the repository, you can (temporarily) include the changes as follows using replace:

go mod edit -replace github.com/e-chip/redis-rwlock=github.com/GerritErpenstein/redis-rwlock@708126b8422091aa1dbc26131f8b236aba54fb4a
go mod tidy

⚠️ Make sure to revert back to the official dependency when the pull request is merged.