20

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

2
  • I don't think it's possible in Azure Portal. However, you can use redis-cli to issue FLUSHDB command. See This answer: stackoverflow.com/questions/6851909/…. Commented May 14, 2016 at 15:57
  • @qbik Yes,but how can I run those commands on azure portal ? How to connect redis db on the azure from my local machine ? Is there any GUI where I can use it ? Commented May 14, 2016 at 16:13

2 Answers 2

39

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.

Sign up to request clarification or add additional context in comments.

6 Comments

for me it's disabled.do you know why ?
@Sampath The console is available for Standard and Premium tiers. If yours is disabled, you're likely running Basic tier. Here's the faq which calls this out. As I stated in my answer - if you use a local redis tool on your computer that supports console, you can then issue commands that way, just by connecting to your Azure Redis cache with credentials provided in the portal.
This is really BAD.The Basic tier is for the Development and Testing.We need console mostly on that stage.But you guys have disabled it for the most needed tier.Which is disappointing :( Anyway I have updated the question.Can I have a feedback for that too ?
@Sampath First: I'm not part of "you guys" - I don't work on the Azure product team. Second: The feature you seek is freely available via desktop tool (a simple search for redis desktop manager should enlighten you) - there is nothing stopping you from doing what you need to do, today, without a portal-based console.
This must have changed at some point as the console is currently available for me in the basic tier.
|
0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.