Sampath
Sampath

Reputation: 65870

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

Upvotes: 20

Views: 37401

Answers (2)

Gibin Francis
Gibin Francis

Reputation: 1

You can use

https://marketplace.visualstudio.com/items?itemName=gbnz.redis-cache-clear

which is a basic devops extension. Use '*' in the value, it will flush all redis data

Upvotes: 0

David Makogon
David Makogon

Reputation: 71031

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.

Upvotes: 39

Related Questions