Storing Lists in Redis: Modification Commands
Let’s see how we can modify the data in a List in Redis.
We'll cover the following...
We'll cover the following...
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 ...