I\'m wondering if there\'s a way to check if a key already exists in a redis list?
I can\'t use a set because I don\'t want to enforce uniqueness, but I do want to be ab
You can also use LPOS.
LPOS
When the item exists it returns a number indicating the position:
LPOS mylist myitem 3
When not it returns nill:
nill
LPOS mylist myitem_which_do_not_exits (nil)
Notes: