Redis ZREVRANGE – How to get elements of sorted set by Desc Rank Range

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get one or more elements of the sorted set value having rank between specific range and in descending order by score. For this, we will use Redis ZREVRANGE commands. ZREVRANGE Command The ZREVRANGE command, returns one or more elements of the sorted set value stored at Read More

Redis ZRANGE – How to get elements of sorted set by Asc Rank Range

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get one or more elements of the sorted set value having rank between specific range and in ascending order by score. For this, we will use Redis ZRANGE commands. ZRANGE Command The ZRANGE command, returns one or more elements of the sorted set value stored at Read More

Redis List – Commands to manage a list value in redis datastore

5 years ago Lalit Bhagtani 0
Lists are a sequence of strings sorted by insertion order, In Redis, list can be store as a value at key and various redis commands are used to store, manage and retrieved a list value stored in redis database. The syntax for using redis commands is as follows :- Syntax :- redis host:post> <Command Name> Read More

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

5 years 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

5 years 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