How to get the list of Keys in cache

I have implemented response cache in my usecase to cache the backend response. I dint specify the CacheResource explicitly hence shared cache is being used to store the data.

  1. Is there a way to get the list of Cache Keys that are available in shared cache for my organization?
  2. Also, how do I get the list of Cache Keys in user defined cache?
0 2 373
2 REPLIES 2

You cannot query the list of keys used in a cache.

What's your use case? What do you REALLY want to do?

HI @maivizhi,

There is no way in Apigee to get the list of keys from the cache. You can use Apigee KVM, BaaS or secure vault but it will persist your data for ever. Also, while storing the data into the KVM you need to take care of its size as 15 MB is the limit for a KVM.