How to increment a integer value in redis – Redis INCR | INCRBY

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to increment the string representing a integer value stored at a key in redis datastore, by using redis INCR and INCRBY commands. INCR Command The INCR command is used to increment the string representing a integer value stored at the specified key by one. If the key does Read More

How to set multiple string values in redis – Redis MSET | MSETNX

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to set multiple string values at their respective keys in redis datastore, by using redis MSET, and MSETNX commands. MSET Command The MSET command is used to set multiple string values to their respective specified key. If any of the specified key already exist, then it’s value Read More

How to get a string value in redis datastore – Redis GET | MGET

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get a string value stored at a key in redis datastore, by using redis GET and MGET command. GET Command The GET command is used to get a string value stored at a specified key. If key doesn’t exist, nil is returned and if key exists Read More

Redis Set – Commands to manage a set value in redis datastore

5 years ago Lalit Bhagtani 0
Sets are an unordered collection of unique elements, In Redis, sets can be store as a value at key and several redis commands are used to store, manage and retrieved a set value stored in redis database. The syntax for using redis commands is as follows :- Syntax :- redis host:post> <Command Name> <key name> Read More

How to perform difference of set values- Redis SDIFF | SDIFFSTORE

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to perform the difference operation on two or more sets value stored in redis datastore, by using redis SDIFF and SDIFFSTORE command. Difference of Sets: In set theory, the difference of two sets A and B, written as A – B is a set which contains all Read More

How to perform intersection of set values- Redis SINTER | SINTERSTORE

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to perform the intersection operation on two or more sets value stored in redis datastore, by using redis SINTER and SINTERSTORE 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 Read More

How to perform union of set values – Redis SUNION | SUNIONSTORE

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to perform the union operation on two or more sets value stored in redis datastore, by using redis SUNION and SUNIONSTORE command. Union of Sets: In set theory, the union of two or more sets is the set which contains all the elements ( distinct ) present Read More

How to delete an element from a set in redis – Redis SPOP | SREM

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to delete an element from a set value stored at a key, using redis SPOP and SREM command. SPOP Command :- This command, removes and returns one or more random elements from the set stored at the specified key. The syntax of redis SPOP command is as Read More