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

Is redis-lock incompatible with Memurai client of redis? #34

Open
jyoung4242 opened this issue Mar 10, 2022 · 1 comment
Open

Is redis-lock incompatible with Memurai client of redis? #34

jyoung4242 opened this issue Mar 10, 2022 · 1 comment

Comments

@jyoung4242
Copy link

C:\programming\memurai app\node_modules\redis-lock\index.js:23
                throw new Error("You must specify a client instance of http://github.com/mranney/node_redis");

passing instance of memurai client (instead of redis) and i get this error

@jyoung4242
Copy link
Author

on index.js,

	if(!(client && client.SETNX)) {
		throw new Error("You must specify a client instance of http://github.com/mranney/node_redis");
	}

the client.setnx would need to be uppercase for node-redis
it doesn't throw the error when i modify it

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