newszine

Redis INCRBYFLOAT – How to increment a floating point value in redis

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to increment the string representing a floating point value stored at a key in redis datastore. For this, we will use a Redis INCRBYFLOAT command.  INCRBYFLOAT Command This command is used to increment the string representing a floating point number stored at the key by the specified value. If Read More

Redis SETRANGE – How to update a part of the string value in redis

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to update a part of the string value stored at a specified key in redis datastore. For this, we will use a Redis SETRANGE command. SETRANGE Command This command takes start ( inclusive ) offset, which determined the start index of the update part of the string value. If start Read More

Redis GETRANGE – How to get a substring of a string value in redis

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get a substring of the string value stored at a specified key in redis datastore. For this, we will use a Redis GETRANGE command. GETRANGE Command This command takes start ( inclusive ) and end ( inclusive ) offsets, which determined the start and end index of a Read More

How to decrement a integer value in redis – Redis DECR | DECRBY

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

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