newszine

Redis EXISTS – How to check existence of key in redis datastore

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to check, if a key exists in redis datastore or not by using a COMMAND – EXISTS in redis-cli. The syntax of redis EXISTS command is as follows :- Syntax :- redis host:post> EXISTS <key name> Output :- - 1 if key exist - 0 if key does Read More

How to get expiration time of key in redis – Redis TTL | PTTL

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get an expiration time ( timeout ) of key by using redis TTL and PTTL command.. Expiration Time in Seconds :- To get an expiration time of key in seconds, we will use a COMMAND – TTL in redis-cli. This number of seconds represents the remaining time Read More

Redis TYPE – How to get datatype of value store in key

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get the datatype of a value store in the key. Values in redis datastore can be of different datatype like String, List, Set, Sorted Set etc. To get the data type of a value, we will use the COMMAND – TYPE in redis-cli. The syntax of redis TYPE Read More

Redis DUMP – How to get serialized value of key in redis

5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get serialized version of value stored at the key in redis datastore by using a COMMAND – DUMP in redis-cli. The syntax of redis DUMP command is as follows :- Syntax :- redis host:post> DUMP <key name> Output :- - string representing serialized version of value Example :- Read More