Redis List

Redis LRANGE – How to get all elements of a list value in redis datastore

2 months ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get all elements of a list value stored at a key. For this, we will use a redis LRANGE command.  LRANGE Command This command returns one or more elements of the list value stored at specified key, defined by the specified offsets. It takes start ( inclusive ) and end Read More

Redis LTRIM – How to trim an existing list stored in redis datastore

2 months ago Lalit Bhagtani 0
In this tutorial, we will learn about how to trim an existing list value stored at a key in redis datastore. For this, we will use Redis LTRIM commands. LTIM Command This command trims an existing list value such that resulting list value contains only the specified range of elements. The range is defined by start ( inclusive ) Read More

How to remove & return last element of a list – Redis RPOP | BRPOP

2 months ago Lalit Bhagtani 0
In this tutorial, we will learn about how to remove and return the last element of the list value stored at a key in redis datastore. For this, we will use redis RPOP and BRPOP commands. RPOP Command This command is used to remove and return the last element of the list value stored at the Read More

How to insert element at head of list value – Redis LPUSH | LPUSHX

2 months ago Lalit Bhagtani 0
In this tutorial, we will learn about how to insert one or more elements at the head of the list value stored at a key in redis datastore. For this, we will use Redis LPUSH and LPUSHX commands. LPUSH Command The LPUSH command is used to insert one or more specified elements at the head ( Read More