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

Issue with Populate & Lookup policy

Can any one share a simple populate/lookup policy ?

Policy 1 has below to populate

Populate:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <PopulateCache async="false" continueOnError="false" enabled="true" name="PopulateToken"> <DisplayName>PopulateToken</DisplayName> <FaultRules/> <Properties/> <CacheKey> <Prefix>app</Prefix> <KeyFragment ref="accessToken"/> </CacheKey> <CacheResource>AccessToken</CacheResource> <Scope>Exclusive</Scope> <ExpirySettings> <TimeoutInSec Ref="3600"></TimeoutInSec> </ExpirySettings> <Source>appAccessToken</Source> </PopulateCache>

Policy 2 has below to lookup.

Lookup:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <LookupCache async="false" continueOnError="false" enabled="true" name="LookupToken"> <DisplayName>LookupToken</DisplayName> <FaultRules/> <Properties/> <CacheKey> <Prefix>app</Prefix> <KeyFragment ref="accessToken"/> </CacheKey> <CacheResource>AccessToken</CacheResource> <Scope>Exclusive</Scope> <AssignTo>appAccessToken</AssignTo> </LookupCache>

When I try to access the appAccessToken value in policy 2 it doesn't retrieves the value.How to check if the value is populated ?

-Vinay

0 1 142
1 REPLY 1

@vinay poreddy

Can you make below changes?

<ExpirySettings> <TimeoutInSec>3600</TimeoutInSec> </ExpirySettings>