Is there an easy way to see what's in my Redis Cache on Azure? I mean some type of tool?
I know how to do it programmatically but sometimes while writing code, I want to be able to quickly see what's in my Redis cache without having to switch to some other code.
The Azure Redis Cache is a high-performance caching service that provides in-memory data store for faster retrieval of data. It is based on the open-source implementation Redis cache. This ensures low latency and high throughput by reducing the need to perform slow I/O operations.
After selecting a cache instance, you will be able to see all the databases with data in them. For a clustered cache, you would see shards instead. From there, you can expand a cache resource to view all the keys inside it. By clicking on a Redis key name, all its contents will open in a new editor tab.
To create a cache, sign in to the Azure portal and select Create a resource. On the New page, select Databases and then select Azure Cache for Redis. On the New Redis Cache page, configure the settings for your new cache. Drop down and select your subscription.
Not only that, you can use it as a multi-model primary database, enabling you to build modern applications, as well as low-latency microservice-based architectures, all on top of Redis.
Besides programming, generally, there are two ways to explore the data on Azure Redis Cache, which include Azure Redis Console on Azure portal or Redis clients like the standard client redis-cli
.
Using redis clients. If you are using Windows, you can download Redis on Windows which be released by MSFT. After install it, you can find the redis tool called redis-cli.exe
and use it to connect Azure Redis Cache as below.
If not enabled ssl, type in CMD
as below.
C:> redis-cli.exe -h <your redis cache name>.redis.cache.windows.net -p 6379 -a <access key>
Or you can use the third party GUI client, such as Redis Desktop Manager (cross-platform), Redis Studio (only for Windows).
Fig 1. Using Redis Desktop Manager to connect Azure Redis Cache within SSL
Hope it helps. Any concern, please feel free to let me know.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With