Question
Redis Climate Install Redis: Select Run->Install Start Redis Server: Select Run->Start Now in terminal type redis-cli The above will open a Redis prompt as below
Redis Climate
Install Redis:
Select Run->Install
Start Redis Server:
Select Run->Start
Now in terminal type redis-cli
The above will open a Redis prompt as below :
redis 127.0.0.1:6379>
In the above prompt, type "PING" command and you will get "PONG" back in the terminal.
Now you have
- successfully installed Redis server.
- started redis.
- is in the Redis command line interface.
Environo conducted surveys and it collected about highest temperature recorded worldwide.
Below is the list of places an their temparatures in centigrades
Place Climate
Algeria 51
Botswana 44
Chad 47
Comoros 36
Guinea 45
Sudan 49
Zambia 42
Write commands to add the above details into Redis using strings(set)
- Write a command to set the climate of Algeria under the key Algeria
- Write a command to set the climate of Botswana under the key Botswana
- Write a command to set the climate of Chad under the key Chad
- Write a command to set the climate of Comoros under the key Comoros
- Write a command to set the climate of Guinea under the key Guinea
- Write a command to set the climate of Sudan under the key Sudan
- Write a command to set the climate of Zambia under the key Zambia
Write a command to get the random key from Redis database
Step by Step Solution
3.52 Rating (192 Votes )
There are 3 Steps involved in it
Step: 1
Commands to add the details into Redis SET Algeria 51 SET Botswana 44 SET Chad ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started