Azure API Management Internal Cache REST API

Lopez Alonso, Luis 186 Reputation points
2023-11-03T08:33:33.19+00:00

Hi,

We are wondering how can we get the internal cache of Azure API Management.

Regarding this question: https://learn.microsoft.com/en-us/answers/questions/1369514/if-we-apply-internal-caching-in-azure-apim-how-do you mention that APIM REST API is for external cache and not for internal cache, but in this question: https://learn.microsoft.com/en-us/answers/questions/756817/azure-api-management-internal-cache you mention that trough APIM REST API you can get the internal cache.

We have made some test and added a value on the cache:

User's image

When we try List By Service and add our resource-group/servicename/subscription the response is 200 but the body is empty:

User's image

Could you bring some light on that?

Thanks a ton for your response

Regards

Luis

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
{count} votes

Answer accepted by question author
  1. JananiRamesh-MSFT 29,436 Reputation points Moderator
    2023-11-03T17:17:09.86+00:00

    @Lopez Alonso, Luis Thanks for reaching out. APIM uses an internal cache to improve performance by storing responses from your backend services and reusing them. However, the internal cache is not directly accessible or viewable.

    The APIM REST API does not provide a way to directly view or manage the contents of the internal cache.

    If you need more control over your cache, such as the ability to view and manage the contents of the cache, you might want to consider using an external cache such as Azure Cache for Redis. This would give you more flexibility and control over your cache, at the cost of additional complexity and potential latency.

    I hope this helps! let me know incase of further queries, I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.