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
@@ -33,9 +35,9 @@ If you want to skip straight to the code, see the [Python quickstart](https://gi
33
35
34
36
[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.
35
37
36
-
The following example used *pip3* for Python 3 to install `redis-py` on Windows 11 from an Administrator command prompt.
38
+
The following example used `pip3` for Python 3 to install `redis-py` on Windows 11 from an Administrator command prompt.
37
39
38
-

40
+
:::image type="content" source="media/cache-python-get-started/cache-python-install-redis-py.png" alt-text="Install the redis-py Python interface to Azure Cache for Redis.":::
39
41
40
42
## Read and write to the cache
41
43
@@ -77,14 +79,14 @@ result = r.get("Message")
77
79
print("GET Message returned : "+ result.decode("utf-8"))
78
80
79
81
result = r.client_list()
80
-
print("CLIENT LIST returned : ")
82
+
print(f"CLIENT LIST returned : ")
81
83
for c in result:
82
84
print(f"id : {c['id']}, addr : {c['addr']}")
83
85
```
84
86
85
87
Run `PythonApplication1.py` with Python. You should see results like the following example:
86
88
87
-

89
+
:::image type="content" source="media/cache-python-get-started/cache-python-completed.png" alt-text="Run Python script to test cache access.":::
88
90
89
91
## Clean up resources
90
92
@@ -96,11 +98,14 @@ If you're finished with the Azure resource group and resources you created in th
96
98
To delete the resource group and its Redis Cache for Azure instance:
97
99
98
100
1. From the [Azure portal](https://portal.azure.com), search for and select **Resource groups**.
101
+
99
102
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.
103
+
100
104
1. On your resource group page, select **Delete resource group**.
105
+
101
106
1. Type the resource group name, and then select **Delete**.
102
107
103
-

108
+
:::image type="content" source="./media/cache-python-get-started/delete-your-resource-group-for-azure-cache-for-redis.png" alt-text="Delete your resource group for Azure Cache for Redis":::
0 commit comments