Basically a reverse command to LINDEX:

redis> LPUSH mylist "World"
(integer) 1
redis> LPUSH mylist "Hello"
(integer) 2
redis> LPUSH mylist "World"
(integer) 3
redis> LPOS mylist "Hello"
(integer) 1
redis> RPOS mylist "World"
(integer) 2
redis> LPOS mylist "Y'All"
(nil)

The code for finding items is already there for LREM so I feel confident I could adapt it for this feature.

Comment From: antirez

Please do it with Lua scripting if really needed, I don't want to add such a command as I'm pretty sure 99% of the usages of this command are result of something wrong in the data layout design. Cheers!

Comment From: itamarhaber

FYIs: This was added in v6.0.6 as LPOS.