Skip to content

Commit 684cafb

Browse files
committed
formatting
1 parent a254885 commit 684cafb

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

articles/azure-cache-for-redis/cache-development-faq.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,23 @@ sections:
7373
answer: |
7474
There's no local emulator for Azure Cache for Redis. You can run the MSOpenTech version of redis-server.exe from the [Redis command-line tools](https://github.com/MSOpenTech/redis/releases/) on your local machine. Then, connect to it to get a similar experience to a local cache emulator, as shown in the following example:
7575
76-
```csharp
77-
private static Lazy<ConnectionMultiplexer>
78-
lazyConnection = new Lazy<ConnectionMultiplexer> (() =>
79-
{
80-
// Connect to a locally running instance of Redis to simulate
81-
// a local cache emulator experience.
82-
return ConnectionMultiplexer.Connect("127.0.0.1:6379");
83-
});
84-
85-
public static ConnectionMultiplexer Connection
86-
{
87-
get
88-
{
89-
return lazyConnection.Value;
90-
}
91-
}
92-
```
76+
```csharp
77+
private static Lazy<ConnectionMultiplexer>
78+
lazyConnection = new Lazy<ConnectionMultiplexer> (() =>
79+
{
80+
// Connect to a locally running instance of Redis to simulate
81+
// a local cache emulator experience.
82+
return ConnectionMultiplexer.Connect("127.0.0.1:6379");
83+
});
84+
85+
public static ConnectionMultiplexer Connection
86+
{
87+
get
88+
{
89+
return lazyConnection.Value;
90+
}
91+
}
92+
```
9393
9494
You can optionally configure a [redis.conf](https://redis.io/topics/config) file to more closely match the [default cache settings](cache-configure.md#default-redis-server-configuration) for your online Azure Cache for Redis if you want.
9595
@@ -102,7 +102,9 @@ sections:
102102
103103
You can also use the Redis command-line tools. To use them, do the following steps:
104104
1. Download the [Redis command-line tools](/azure/azure-cache-for-redis/cache-how-to-redis-cli-tool#install-redis-cli).
105+
105106
1. Connect to the cache using `redis-cli.exe`. Pass in the cache endpoint using the -h switch and the key using -a as shown in the following example:
107+
106108
`redis-cli -h <Azure Cache for Redis name>.redis.cache.windows.net -a <key>`
107109
108110
> [!NOTE]

0 commit comments

Comments
 (0)