hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

[FEATURE] add a route that will invalidate cache

Open dracarys18 opened this issue 1 year ago • 2 comments

Feature Description

Currently we don't have any way to manually invalidate cache that's stored in redis and in-memory, Add a route that given a key will invalidate both of redis and inmemory cache.

Possible Implementation

So the in memory cache currently has invalidate function that will delete the entry in the cache, and in our redis interface we have delete_key function that will delete the entry from redis. You need to create a route in app.rs that will call this on AdminApiKeyAuth.

Have you spent some time to check if this feature request has been raised before?

  • [X] I checked and didn't find similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

None

dracarys18 avatar Apr 26 '23 12:04 dracarys18

@dracarys18 I would like to look at this. Please can you assign it to me?

jeevaprakashdr avatar Apr 28 '23 07:04 jeevaprakashdr

Done @jeevaprakashdr

dracarys18 avatar Apr 28 '23 07:04 dracarys18