1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to NoSQL

Connected

Exercise

Storing key-value data with Redis

Redis is a powerful tool used to store key-value pairs and is especially common in web applications. In this example, you're a developer creating a widget that shows the current weather for users of an application and leveraging Redis to cache this information.

To help get you stared, a connection to the Redis cluster has been created and is available in the variable redis_conn. Go get 'em!

Instructions

100 XP
  • Store the value "London" at the key "city".
  • Using the key "sunshine", store the value 7
  • Retrieve the values stored at the "city" and "sunshine" keys, take a look at the printed results.