Skip to content

Commit b36d20d

Browse files
authored
Merge pull request #50084 from joroda/patch-1
Fix Redis usage sample code
2 parents 71aeaed + c3405fb commit b36d20d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-cache-for-redis/cache-dotnet-how-to-use-azure-redis-cache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Add the following code for the `Main` procedure of the `Program` class for your
124124
{
125125
// Connection refers to a property that returns a ConnectionMultiplexer
126126
// as shown in the previous example.
127-
IDatabase cache = lazyConnection.Value.GetDatabase();
127+
IDatabase cache = Connection.GetDatabase();
128128

129129
// Perform cache operations using the cache object...
130130

0 commit comments

Comments
 (0)