...

/

Storing Lists in Redis: Modification Commands

Storing Lists in Redis: Modification Commands

Let’s see how we can modify the data in a List in Redis.

In the previous lesson, we looked at a few commands used to insert lists into the Redis database. In this lesson, we will look at how we can modify a List present in the database.

LLEN command

The LLEN command is used to find the length of the list, as shown below.

LLEN key

LINDEX command

The LINDEX command is used to find the element at a particular index in the list.

LINDEX key index ...