Skip to content

Commit c13eb7a

Browse files
authored
Update code snippet
1 parent 57669c5 commit c13eb7a

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)