How can we improve Azure Cache?

Remove keys from Azure Redis Cache based on key patterns

Sometime we need to remove keys from cache based on key patterns but right now there is no such feature in console.

6 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Rukhsar Ahmad shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Tim commented  ·   ·  Flag as inappropriate

        redis itself doesn't support efficient pattern matching search of keys, since it is a hashtable design. The best approaches I can think of are to write a console app to use SCAN on your redis cache, check if key names match, and then DEL matching keys, or to use EXEC with a LUA script.

      Feedback and Knowledge Base