Skip to content
masterclass Buddy

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.

Subscribe
  • LPUSH
  • RPUSH
  • LRANGE
  • LREM
  • LSET

Source: LPOS | Docs. Checked 2026-11-03.