Redis · Command
LPOS
LPOS finds a value in a Redis list and returns its zero-based position. Options can select a match, return several positions, or limit the scan.
Last updated
- Since
- 6.0.6
Syntax
LPOS key element [RANK rank] [COUNT num-matches] [MAXLEN len]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
LPUSHRPUSHLRANGELREMLSET