1. Home
  2. Training Library
  3. Microsoft Azure
  4. Courses
  5. Integrating Redis Cache and CDN on Azure

Installing Redis PY

Start course

This course provides an overview of Redis Cache and how to create a Redis Cache instance in Azure. With Redis Cache deployed in Azure, we’ll then connect an application to the cache.
Next, we’ll walk through the process of storing and retrieving data in Redis Cache. After covering Redis Cache, we’ll walk through an overview of what CDN is and what it’s used for. We’ll then develop some code for leveraging CDN. As we wrap up the course, we’ll cover the process for invalidating data in both Redis Cache and in a CDN.

Intended Audience

This course is intended for IT professionals who are interested in earning Azure certification and those who need to incorporate Redis Cache or CDN into their solutions. To get the most from this course, you should have at least a moderate understanding of what caching is and why it’s used.

Learning Objectives

By the end of this course, you should have a good understanding of what Redis Cache and CDN are and what purposes they serve. You’ll also know how to connect to each from applications and how to purge or invalidate data in both.


- [Narrator] In this lesson, we're going to create a Python application and connect it to our Redis cache. However, before doing so we need to install redis-py, which is a Python interface to the Azure cache for Redis. I'm goin to install redis-py through Microsoft Visual Studio, which you see on your screen. To perform the installation I simply click on tools and then Python. From here I go to Python Environments. In my packages search I can search for Redis. In my list of commands that are returned I can see install redis here installs redis-py. So we'll go ahead and click this command, and we need to run it in an elevated prompt, so we'll go ahead and elevate it, and you can see on the bottom here that it was successfully installed. In the next demonstration we will test the read and write access to our cache from Python.

About the Author
Thomas Mitchell
Learning Paths

Tom is a 25+ year veteran of the IT industry, having worked in environments as large as 40k seats and as small as 50 seats. Throughout the course of a long an interesting career, he has built an in-depth skillset that spans numerous IT disciplines. Tom has designed and architected small, large, and global IT solutions.

In addition to the Cloud Platform and Infrastructure MCSE certification, Tom also carries several other Microsoft certifications. His ability to see things from a strategic perspective allows Tom to architect solutions that closely align with business needs.

In his spare time, Tom enjoys camping, fishing, and playing poker.