Access same cache resource across multiple API proxies

Not applicable

Is it possible to use the same General Purpose Cache Resource entries across multiple API Proxies using Lookup Cache policy using the same cache resource ?

Basically we want to achieve the following scenario :

Add Response from Proxy 1 in CommonCacheResource using Populate Cache Policy

In Proxy 2, access Response from Proxy 1 using Lookup Cache Policy with the same cache resource CommonCacheResource

0 3 153
3 REPLIES 3

Hi @Swapnil Raverkar

Yes you can by using Scopes. Please take a look at this documentation

Does that mean if i used the Application Scope the cache key will be prefixed by "orgName__envName__apiProxyName" and i can lookup the cache entry using that in other API Proxies ?

Yes Swapnil. Please try and let me know. Global is the other option too if you need it globally as well.