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

Can`t connect to Redis with Authentication required #7

Open
KaiqueeFigui opened this issue Oct 26, 2022 · 0 comments
Open

Can`t connect to Redis with Authentication required #7

KaiqueeFigui opened this issue Oct 26, 2022 · 0 comments

Comments

@KaiqueeFigui
Copy link

When trying to connect to redis and Lock, I`m getting this:

failed to acquire lock: NOAUTH Authentication required.

My code:

redisConn := redisconnection.NewRedisConn("redis://eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81@127.0.0.1:6379")
defer redisConn.Close()
dlm, err := redisLock.NewRedisDLM("localhost:6379", nil)
checkError(err)
lock, err := dlm.NewLock("resource", nil)
checkError(err)
checkError(lock.Lock())
defer checkError(lock.Unlock())

Any idea, how can I lock redis with auth required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant