Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Data in Azure Redis Cache

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.

like image 200
Sam Avatar asked Feb 09 '17 22:02

Sam


People also ask

How the data is stored in Azure Redis cache?

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.

How do I view Redis cache data in Azure?

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.

How do I add data to Azure Redis cache?

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.

Can Redis cache be used as a database?

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.


1 Answers

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.

  1. Using Azure Redis Console on Azure portal, please see the offical tutorial Redis console.
  2. 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 enter image description here

Hope it helps. Any concern, please feel free to let me know.

like image 143
Peter Pan Avatar answered Oct 14 '22 07:10

Peter Pan