I'm trying to get the index of an element in a list that I loaded under a key, but cannot figure out how to find it.
Hi @snaplesec , every command is supported so you can use redis.lpos('mylist', 'c')
Thank you, I will try it like you said.
Sent via the Samsung Galaxy Note10+, an AT&T 5G Evolution capable smartphone
Get Outlook for Androidhttps://aka.ms/ghei36
From: Zihua Li notifications@github.com
Sent: Saturday, July 25, 2020 10:33:00 AM
To: luin/ioredis ioredis@noreply.github.com
Cc: Steve Naples snaples@eaglecrk.com; Mention mention@noreply.github.com
Subject: Re: [luin/ioredis] How to find an element in a List, I cannot find the lpos command? (#1163)
Hi @snaplesechttps://github.com/snaplesec , every command is supported so you can use redis.lpos('mylist', 'c')
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/luin/ioredis/issues/1163#issuecomment-663868316, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL3MGM2ANPBSYSTP5SVT5ZLR5L3KZANCNFSM4O45CX2Q.
The content of this email is confidential. It is intended only for the use of the persons named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Actually, I just realized lpos was added in Redis 6.0.6 which ioredis didn't support. I updated ioredis to v4.18.0 and it should provide that command.
OK, thank you, I realized that I am running on redis cluster 5.0.6 so I guess it won't matter. Thank you for looking into that.
Sent via the Samsung Galaxy Note10+, an AT&T 5G Evolution capable smartphone
Get Outlook for Androidhttps://aka.ms/ghei36
From: Zihua Li notifications@github.com
Sent: Saturday, July 25, 2020 11:23:01 AM
To: luin/ioredis ioredis@noreply.github.com
Cc: Steve Naples snaples@eaglecrk.com; Mention mention@noreply.github.com
Subject: Re: [luin/ioredis] How to find an element in a List, I cannot find the lpos command? (#1163)
Actually, I just realized lpos was added in Redis 6.0.6 which ioredis didn't support. I updated ioredis to v4.18.0 and it should provide that command.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/luin/ioredis/issues/1163#issuecomment-663873513, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL3MGMY4RK3NEGKONOTOMYLR5MBGLANCNFSM4O45CX2Q.
The content of this email is confidential. It is intended only for the use of the persons named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
@luin first of all, thank you by your incredible work in ioredis. Looking v4.18.0 lpos is available for javascript, but not have types in @types/ioredis until now....
If you could help us by adding that, it will be great. Thank you in advance!!
@luin first of all, thank you by your incredible work in ioredis. Looking v4.18.0
lposis available for javascript, but not have types in @types/ioredis until now....If you could help us by adding that, it will be great. Thank you in advance!!
@nsfilho Although we plan to provide official typings, the current typings are from other repo https://github.com/DefinitelyTyped/DefinitelyTyped. Can you create a ticket on that repo?
Most helpful comment
@nsfilho Although we plan to provide official typings, the current typings are from other repo https://github.com/DefinitelyTyped/DefinitelyTyped. Can you create a ticket on that repo?