12

I would like to know how to clear Azure Redis Cache from portal or any other easy way to clear all the keys ? I am using azure redis cache for my azure cloud service and I would like to know any easy way to clear all the keys for my azure redis cache. I couldn't find anything on the azure portal or the web on how to do this.

Thanks for your help.

Bitsian
  • 2,238
  • 5
  • 37
  • 72
  • 2
    Azure Redis cache is just standard Redis cache hosted in Azure so advice that applies to Redis applies here. There isn't a feature in Azure to allow you to purge all keys or flush the DB but you can find samples online that show you how to do this, or use one of the tools listed on the Redis site: http://redis.io/clients – Simon W Feb 16 '15 at 08:09
  • Possible duplicate of [How do I delete everything in Redis?](https://stackoverflow.com/questions/6851909/how-do-i-delete-everything-in-redis) – kenorb Apr 04 '19 at 15:21

3 Answers3

15

The cache is cleared using standard Redis commands, like FLUSHALL. You can issue the command from any client, like redis-cli.exe or StackExchange.Redis.

Mike Harder
  • 1,765
  • 16
  • 12
8

You can use Azure Redis Console to run FLUSHALL.

enter image description here

Warren Zhu
  • 1,355
  • 11
  • 12
2

Rebooting Redis cache did the trick for me. Be sure to select both - master and slave for the reboot.

Redis Reboot Options Screenshot

clemens
  • 16,716
  • 11
  • 50
  • 65
Sashi
  • 2,659
  • 5
  • 26
  • 38