Skip to content

Commit 55eb8fb

Browse files
committed
tweaks for flow
1 parent 3b8feb2 commit 55eb8fb

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

articles/redis/go-get-started.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ ms.custom:
1111
appliesto:
1212
- ✅ Azure Cache for Redis
1313
ms.devlang: golang
14-
zone_pivot_groups: redis-type
1514
---
1615

1716
# Quickstart: Use Azure Redis with Go
@@ -21,27 +20,27 @@ In this article, you learn how to use an Azure Redis cache with the Go language
2120
## Prerequisites
2221

2322
- Azure subscription - [create one for free](https://azure.microsoft.com/free/)
24-
- [Go](https://go.dev/doc/install)
25-
- You must also add two imports from Redis to your project and add them to your development environment.
23+
- Install [Go](https://go.dev/doc/install) language environment
24+
- Add [two imports from Redis](https://redis.io/docs/latest/develop/clients/go/) to your project and to your development environment
2625
- `entraid "github.com/redis/go-redis-entraid"`
2726
- `"github.com/redis/go-redis/v9"`
2827

2928
## Create an Azure Managed Redis instance
3029

31-
First you must create a cache. You can create a cache using Azure Managed Redis or Azure Cache for Redis using the Azure portal. In this Quickstart, we use Azure Managed Redis.
30+
First, create a cache. You can create a cache using Azure Managed Redis or Azure Cache for Redis using the Azure portal. In this Quickstart, we use Azure Managed Redis.
3231

33-
When you create the cache, you should create it Microsoft Entra ID is enabled by default. Your cache must also use public endpoint for this QuickStart.
32+
When you create the cache, Microsoft Entra ID is enabled by default making it secure from the start. Your cache must also use a public endpoint for this QuickStart.
3433

3534
To create a cache with the portal, follow one of these procedures:
3635

3736
- [Azure Managed Redis](includes/managed-redis-create.md)
3837
- [Azure Cache for Redis](/azure/azure-cache-for-redis/quickstart-create-redis)
3938

40-
Optionally, you can create a cache using Azure CLI, PowerShell, or any means that you prefer.
39+
Optionally, you can create a cache using Azure CLI, PowerShell, whichever you prefer.
4140

4241
## Code to connect to a Redis cache
4342

44-
The first part of the code sample, you set your connection to your cache:
43+
In the first part of the code sample, set your connection to the cache:
4544

4645
```go
4746
package main
@@ -82,7 +81,7 @@ func main() {
8281
8382
## Code to test a connection
8483
85-
In the next section, we test the connection using the Redis command "ping" that returns the "pong" string.
84+
In the next section, test the connection using the Redis command `ping` that returns the `pong` string.
8685
8786
```go
8887
// Ping the Redis server to test the connection
@@ -95,7 +94,7 @@ In the next section, we test the connection using the Redis command "ping" that
9594
9695
## Code set a key, get a key
9796
98-
In this section, we show a basic `set` and `get` sequence to demonstrate using the Redis cache.
97+
In this section, use a basic `set` and `get` sequence to start using the Redis cache in the simplest way to get started.
9998
10099
```go
101100
// Do something with Redis and a key-value pair
@@ -120,19 +119,21 @@ In this section, we show a basic `set` and `get` sequence to demonstrate using t
120119

121120
```
122121

123-
Before you can run this code, you must add yourself as a Redis user. And you must also authorize your connection to Azure from the command line using the Azure command line or Azure developer command line (azd).
122+
Before you can run this code, you must add yourself as a Redis user.
124123

125-
You should also [add any user](entra-for-authentication.md) [Add users or System principal to your cache](entra-for-authentication.md#add-users-or-system-principal-to-your-cache) who might run the program as a user on the Redis cache.
124+
You must also authorize your connection to Azure from the command line using the Azure command line or Azure developer command line (azd).
125+
126+
You should also [add users or a System principal to your cache](entra-for-authentication.md#add-users-or-system-principal-to-your-cache). Add anyone who might run the program as a user on the Redis cache.
126127

127128
The result looks like this:
128129

129-
```
130+
```console
130131
Ping returned: PONG
131132
SET Message succeeded: OK
132133
GET Message returned: Hello, The cache is working with Go!
133134
```
134135

135-
You can see this code sample in its entirety.
136+
Here, you can see this code sample in its entirety.
136137

137138
```go
138139
package main
@@ -152,7 +153,7 @@ func main() {
152153
ctx := context.Background()
153154

154155
// Set your Redis host (hostname:port)
155-
redisHost := "<host >:<public port number>""
156+
redisHost := "<host >:<public port number>"
156157

157158
// Create a credentials provider using DefaultAzureCredential
158159
provider, err := entraid.NewDefaultAzureCredentialsProvider(entraid.DefaultAzureCredentialsProviderOptions{})

0 commit comments

Comments
 (0)