Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear Azure Redis Cache

Due to some issue where I need to clear all the cache data on the Redis cache hosted on the Azure.In other words by using the Azure portal.Not by using my application.One option I can think of is,Delete the Redis cache instance and recreate it.But do you know better way for doing that ? I'm using StackExchange.Redis.dll

Update 2 :

Could you tell me how to get public key in PEM format ? On the doc here it says this The easiest way to run this command in Windows - MSYS2.I don't have any idea about that.

enter image description here

Update 1 :

Could you tell me why this is happening when I use the redis-cli ?

enter image description here

like image 291
Sampath Avatar asked May 14 '16 14:05

Sampath


People also ask

How do I clear Azure cache in Redis?

Clearing your Azure Cache for Redis of previously cached items is easy. First go to your Redis instance and click on Console as shown below… … and then run the flushall command.

How do I clear my Azure cache?

To flush the local cache logs, stop and restart the app. This action clears the old cache.

How do I restart Azure Redis cache?

To reboot one or more nodes of your cache, select the nodes and select Reboot. If you have a premium cache with clustering enabled, select the shards to reboot, and then select Reboot. After a few minutes, the selected nodes reboot, and are back online a few minutes later.

Can we stop Azure Redis cache?

For the time being, there is no deactivate or disable command.


1 Answers

For Azure's Redis service, the Azure portal has a built-in console (which is in Preview):

console button

At this point, it's as simple as executing a flushall command:

flushall

If you're running Redis in, say, a VM, you'll need to use a tool to connect remotely to the cache and run the flushall command.

like image 179
David Makogon Avatar answered Nov 05 '22 00:11

David Makogon