You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -30,15 +34,15 @@ If you want to skip straight to the code, see the [Python quickstart](https://gi
30
34
31
35
## Install redis-py
32
36
33
-
[Redis-py](https://github.com/andymccurdy/redis-py) is a Python interface to Azure Cache for Redis. Use the Python packages tool, *pip*, to install the *redis-py* package from a command prompt.
37
+
[Redis-py](https://pypi.org/project/redis/) is a Python interface to Azure Cache for Redis. Use the Python packages tool, `pip`, to install the `redis-py` package from a command prompt.
34
38
35
-
The following example used *pip3* for Python 3 to install *redis-py* on Windows 10 from an Administrator command prompt.
39
+
The following example used `pip3` for Python 3 to install `redis-py` on Windows 11 from an Administrator command prompt.
36
40
37
-

41
+
:::image type="content" source="media/cache-python-get-started/cache-python-install-redis-py.png" alt-text="Screenshot of a terminal showing an install of redis-py interface to Azure Cache for Redis.":::
38
42
39
43
## Read and write to the cache
40
44
41
-
Run Python from the command line and test your cache by using the following code. Replace `<Your Host Name>` and `<Your Access Key>` with the values from your Azure Cache for Redis instance. Your host name is of the form *\<DNS name>.redis.cache.windows.net*.
45
+
Run Python from the command line and test your cache by using the following code. Replace `<Your Host Name>` and `<Your Access Key>` with the values from your Azure Cache for Redis instance. Your host name is of the form `<DNS name>.redis.cache.windows.net`.
42
46
43
47
```python
44
48
>>>import redis
@@ -51,11 +55,11 @@ b'bar'
51
55
```
52
56
53
57
> [!IMPORTANT]
54
-
> For Azure Cache for Redis version 3.0 or higher, TLS/SSL certificate check is enforced. ssl_ca_certs must be explicitly set when connecting to Azure Cache for Redis. For RedHat Linux, ssl_ca_certs are in the */etc/pki/tls/certs/ca-bundle.crt* certificate module.
58
+
> For Azure Cache for Redis version 3.0 or higher, TLS/SSL certificate check is enforced. `ssl_ca_certs` must be explicitly set when connecting to Azure Cache for Redis. For RedHat Linux, `ssl_ca_certs` are in the `/etc/pki/tls/certs/ca-bundle.crt` certificate module.
55
59
56
60
## Create a Python sample app
57
61
58
-
Create a new text file, add the following script, and save the file as *PythonApplication1.py*. Replace `<Your Host Name>` and `<Your Access Key>` with the values from your Azure Cache for Redis instance. Your host name is of the form *\<DNS name>.redis.cache.windows.net*.
62
+
Create a new text file, add the following script, and save the file as `PythonApplication1.py`. Replace `<Your Host Name>` and `<Your Access Key>` with the values from your Azure Cache for Redis instance. Your host name is of the form `<DNS name>.redis.cache.windows.net`.
Run *PythonApplication1.py* with Python. You should see results like the following example:
88
+
Run `PythonApplication1.py` with Python. You should see results like the following example:
85
89
86
-

90
+
:::image type="content" source="media/cache-python-get-started/cache-python-completed.png" alt-text="Screenshot of a terminal showing a Python script to test cache access.":::
87
91
88
92
## Clean up resources
89
93
@@ -95,13 +99,15 @@ If you're finished with the Azure resource group and resources you created in th
95
99
To delete the resource group and its Redis Cache for Azure instance:
96
100
97
101
1. From the [Azure portal](https://portal.azure.com), search for and select **Resource groups**.
102
+
98
103
1. In the **Filter by name** text box, enter the name of the resource group that contains your cache instance, and then select it from the search results.
104
+
99
105
1. On your resource group page, select **Delete resource group**.
106
+
100
107
1. Type the resource group name, and then select **Delete**.
101
108
102
-

109
+
:::image type="content" source="./media/cache-python-get-started/delete-your-resource-group-for-azure-cache-for-redis.png" alt-text="Screenshot of the Azure portal showing how to delete the resource group for Azure Cache for Redis.":::
103
110
104
111
## Next steps
105
112
106
-
> [!div class="nextstepaction"]
107
-
> [Create a simple ASP.NET web app that uses an Azure Cache for Redis.](./cache-web-app-howto.md)
113
+
-[Create a simple ASP.NET web app that uses an Azure Cache for Redis.](./cache-web-app-howto.md)
0 commit comments