You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-development-faq.yml
+19-17Lines changed: 19 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -73,23 +73,23 @@ sections:
73
73
answer: |
74
74
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:
75
75
76
-
```csharp
77
-
private static Lazy<ConnectionMultiplexer>
78
-
lazyConnection = new Lazy<ConnectionMultiplexer> (() =>
79
-
{
80
-
// Connect to a locally running instance of Redis to simulate
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.
95
95
@@ -102,7 +102,9 @@ sections:
102
102
103
103
You can also use the Redis command-line tools. To use them, do the following steps:
104
104
1. Download the [Redis command-line tools](/azure/azure-cache-for-redis/cache-how-to-redis-cli-tool#install-redis-cli).
105
+
105
106
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
+
106
108
`redis-cli -h <Azure Cache for Redis name>.redis.cache.windows.net -a <key>`
0 commit comments