what is the difference between response cache and populate cache ?

 
Solved Solved
1 5 2,987
1 ACCEPTED SOLUTION

@puja khetan , Welcome to Apigee Community.

Basically, Response cache policy caches entire response payload & it is attached twice in API Proxy flow in request & response. First time in response it gets executed & caches the data. Once it's cached, Further requests will be handled in request flow where it returns the response data directly from Apigee instead of hitting the target server.

Populate cache policy is used to selectively populate part of response or certain information into Apigee Cache. You will retrieve the cached data using Lookup cache policy.

Hope it helps.

View solution in original post

5 REPLIES 5

@puja khetan , Welcome to Apigee Community.

Basically, Response cache policy caches entire response payload & it is attached twice in API Proxy flow in request & response. First time in response it gets executed & caches the data. Once it's cached, Further requests will be handled in request flow where it returns the response data directly from Apigee instead of hitting the target server.

Populate cache policy is used to selectively populate part of response or certain information into Apigee Cache. You will retrieve the cached data using Lookup cache policy.

Hope it helps.

What is difference between populate cache and lookup cache.

The PopulateCache policy inserts a value into the cache (Populates the cache)

The LookupCache policy retrieves a value from the cache.

This is explained in the documentation.

Thanks for the answer, it would be very helpful to explain the same in the documentation upfront.

Good call, @Himalay Majumdar. We can clarify that in the policy reference topics, for sure. Meantime, here's a bit more: https://docs.apigee.com/api-platform/cache/persistence-tools.