Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis lock #637

Open
illenko opened this issue May 20, 2024 · 1 comment
Open

Redis lock #637

illenko opened this issue May 20, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@illenko
Copy link
Contributor

illenko commented May 20, 2024

Problem:

Now we have go-redis and for implementing distributed lock (common case for Redis usage) users have to write custom implementations of Locks.

Proposal:

To simplify the locks aquiring / releasing process would be better to have redislock out of the box.

In the code usage may look like:

lock, err := ctx.Redis().Locker().Obtain(ctx, "my-key", 100*time.Millisecond, nil)
@yigithankarabulut
Copy link

Hi, I started to try something to implement redislock to gofr properly. Could you assign to me.

@vipul-rawat vipul-rawat added the enhancement New feature or request label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants