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

1 Expert Approved Answer
Step: 1 Unlock

Commands to add the details into Redis SET Algeria 51 SET Botswana 44 SET Chad ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!