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

I want to specify either of two variables in Key fragment in Cache Key,I have two variables which can be a Key fragment in Cache Key

So basically I have two variables in the request and either of which can be the Cache Key in my Cache. I need to Invalidate Cache using either of two variables: request.queryparam.token or request.formparam.token.

Currently I have set Cache Key as below:

<CacheKey>
 <Prefix>apiToken</Prefix>
 <KeyFragment ref="request.queryparam.token"/>
</CacheKey>

But Value of token can either be in queryparam or formparam. Can you please help, its urgent production issue

So basically I want to Invalidate Cache for particular Key. This key can be present in either of the two variables in request that is request.queryparam.token or request.formparam.token.

How can I take both the variables in consideration for removing cache key. Key value would be present in either of two variables.

0 25 480
25 REPLIES 25