newszine

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

Redis LLEN – How to get a length of the list in redis datastore

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get the length of a list value stored at the key. For this, we will use Redis LLEN command. LLEN Command This command returns the length ( number of elements ) of a list value stored at the key. If a key doesn’t exist in redis datastore, it Read More