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

.lpos is not a function #258

Closed
imranaalam opened this issue Dec 8, 2020 · 2 comments
Closed

.lpos is not a function #258

imranaalam opened this issue Dec 8, 2020 · 2 comments

Comments

@imranaalam
Copy link

i am trying this in express/ nodejs using
handyredis.addNodeRedisCommand('lpos')
handyredis.createNodeRedisClient(Redisclient)
console.log('handy redis connected HANDY REDIS HANDY REDIS HANDY REDIS HANDY REDISH HANDY REDIS HANDY REDIS HANDY REDIS')

on calling lpos with handyredis client it says .lpos is not a function

@mmkal
Copy link
Owner

mmkal commented Dec 8, 2020

I'm not able to repro this. Could you share a full code reproduction along with:

  • which version of redis you have installed
  • which version of handy-redis you have installed
  • which version of redis-commands is in your lockfile
  • how you're initialising Redisclient above - it's a good idea to call addNodeRedisCommand as early as possible

Note that lpos is included in the latest redis-commands package, so you may be able to solve this problem just by updating the redis dependency (npm install redis@latest)

@mmkal
Copy link
Owner

mmkal commented Dec 31, 2020

@imranaalam closing since there's not much more I can do here without the above info. Let me know if you are still seeing an issue.

@mmkal mmkal closed this as completed Dec 31, 2020
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

2 participants