Skip to content

Commit 589f3b3

Browse files
authored
Merge pull request #47569 from Potapy4/patch-21
Update code snippet
2 parents 56d7739 + c13eb7a commit 589f3b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-cache-for-redis/cache-web-app-howto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ The ASP.NET runtime merges the contents of the external file with the markup in
141141

142142
// Connection refers to a property that returns a ConnectionMultiplexer
143143
// as shown in the previous example.
144-
IDatabase cache = lazyConnection.GetDatabase();
144+
IDatabase cache = lazyConnection.Value.GetDatabase();
145145

146146
// Perform cache operations using the cache object...
147147

@@ -164,7 +164,7 @@ The ASP.NET runtime merges the contents of the external file with the markup in
164164
ViewBag.command5 = "CLIENT LIST";
165165
ViewBag.command5Result = cache.Execute("CLIENT", "LIST").ToString().Replace(" id=", "\rid=");
166166

167-
lazyConnection.Dispose();
167+
lazyConnection.Value.Dispose();
168168

169169
return View();
170170
}

0 commit comments

Comments
 (0)