Redis HLEN – How to get the number of fields contained in hash value

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get the number of fields contained in the hash value stored at a key, by using a COMMAND – HLEN in redis-cli. The syntax of redis HLEN command is as follows :- Syntax :- redis host:post> HLEN <key name> Output :-  - (integer) value, representing the number Read More

Redis ZINTERSTORE – How to perform intersection of sorted set values

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to perform the intersection operation on two or more sorted sets value stored in redis datastore, by using redis ZINTERSTORE command. Intersection of Sets: In set theory, the intersection of two or more sets is the set which contains the elements that are common to all the Read More

Redis ZREM – How to delete an element from a sorted set value in redis

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to delete one or more specified elements from a sorted set value stored at a key. For this we will use a COMMAND – ZREM in redis-cli.  This command, deletes one or more specified elements from the sorted set stored at the specified key. Specified members that are Read More

How to get rank of an element of sorted set – Redis ZRANK | ZREVRANK

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get the rank of an element of the sorted set value stored at a key in redis datastore, by using redis ZRANK and ZREVRANK commands. ZRANK Command This command is used to return the rank of the element of sorted set value stored at the specified key. The Read More