can i call cacheresource from variable?

i want to set cacheresource value from queryParam. i have multiple cache recourses in my test environment @dchiesa1  any ideas?

0 4 107
4 REPLIES 4

what version of Apigee are you using? 

Are you sure you NEED a cache resource?  Why not just use a composite cache key, and embed the queryParam as one component of the key?  

i am using version 4.5.

i have three cache recourses for three clusters, each clusters need an auth token to call. i want to call each resource based on quaryParam

Why not just use a composite cache key, and embed the queryParam as one component of the key?  

Thank you so much @dchiesa1, using the composite cache key solved my problem. I appreciate the help