File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/azure-cache-for-redis Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ The ASP.NET runtime merges the contents of the external file with the markup in
141
141
142
142
// Connection refers to a property that returns a ConnectionMultiplexer
143
143
// as shown in the previous example.
144
- IDatabase cache = lazyConnection.GetDatabase();
144
+ IDatabase cache = lazyConnection.Value. GetDatabase();
145
145
146
146
// Perform cache operations using the cache object...
147
147
@@ -164,7 +164,7 @@ The ASP.NET runtime merges the contents of the external file with the markup in
164
164
ViewBag.command5 = "CLIENT LIST";
165
165
ViewBag.command5Result = cache.Execute("CLIENT", "LIST").ToString().Replace(" id=", "\rid=");
166
166
167
- lazyConnection.Dispose();
167
+ lazyConnection.Value. Dispose();
168
168
169
169
return View();
170
170
}
You can’t perform that action at this time.
0 commit comments