Skip to content
masterclass Buddy

Redis · Command

LSET

LSET replaces an existing value in a Redis list at a specified index. Indexes start at zero, and negative indexes count from the end.

Last updated

Since
1.0.0

Syntax

LSET key index element

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • BLMOVE
  • BLMPOP
  • BLPOP
  • BRPOP
  • BRPOPLPUSH
  • LINDEX
  • LINSERT
  • LLEN

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