Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Caching response of endpoints

How does caching work under the hood when we use ResponseCache ,lookup cache policy , populate cache policy . and how to cache a response of an endpoint so that the service callout is not called again using those policies ?

and is it possible to cache the response of a target endpoint? or a whole proxy ?

is the cache accessible to view anyhow from apigee environment rather than this command ????

curl -H "Authorization: Bearer $(gcloud auth print-access-token)" \

https://apigee.googleapis.com/v1/organizations/{projectID}/environments/test/caches

 

Solved Solved
0 10 507
1 ACCEPTED SOLUTION

Here is an older example, but it shows the basic approach for response caching (put the ResponseCache policy both in Request flow to respond with cached data if exists, and also in Response flow to cache the response): https://github.com/apigee/api-platform-samples/tree/master/sample-proxies/response-cache

View solution in original post

10 REPLIES 10