-
Notifications
You must be signed in to change notification settings - Fork 1
RedisExplorer
Tore Nestenius edited this page Nov 26, 2024
·
6 revisions
Redis™ Explorer is a tool for reading and writing keys in an Azure Cache for Redis instance. It supports two authentication methods: Managed Identity and Access Keys.
-
Create an Azure Cache for Redis Instance:
- Choose the Basic Cache SKU and select the smallest available size to minimize costs.
- Under the Advanced section, enable Access Keys Authentication.
-
Retrieve the Primary Connection String:
- Once the cache instance is created, navigate to Settings -> Authentication -> Access Keys.
- Copy the Primary connection string and save it in a text editor for later use.
-
Connect to Redis:
- Open the Cloud Debugger.
- Navigate to Redis -> Read and write keys to Redis and enter the copied connection string.
-
Add Keys to Redis:
- Input the key name, value, and expiration time.
- Click Add key to Redis. Repeat this process to add more keys.
-
Verify Key Expiration:
- Refresh or reload the page. You’ll see that the expiration time decreases, and the key will be automatically removed once the time expires.
-
Create an Azure Cache for Redis Instance:
- For cost efficiency, select the Basic Cache SKU and the smallest cache size.
- In the Advanced section, enable Microsoft Entra Authentication.
-
Assign Managed Identity:
- Navigate to Settings -> Authentication in your Redis instance. Assign the appropriate user, managed identity, or service principal to connect to the Redis cache. Ensure this identity matches the one used by the Cloud Debugger.
- Save the changes. The selected identity will appear under Redis Users with Data Owner Access Policy.
-
Retrieve the Hostname:
- Go to the Overview page of your Redis instance and copy the hostname (e.g.,
[mycachename].redis.cache.windows.net
) to a text editor.
- Go to the Overview page of your Redis instance and copy the hostname (e.g.,
-
Connect to Redis:
- Open the Cloud Debugger.
- Navigate to Redis -> Read and write keys to Redis and enter the hostname.
-
Add Keys to Redis:
- Provide the key name, value, and expiration time.
- Click Add key to Redis and repeat for multiple entries.
-
Verify Key Expiration:
- Refresh the page to observe the expiration time countdown. Keys will be removed once their time is up.
*Redis is a trademark of Redis Labs