Skip to content

Instantly share code, notes, and snippets.

@ApigeeSamples
Created May 7, 2012 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ApigeeSamples/2627308 to your computer and use it in GitHub Desktop.
Save ApigeeSamples/2627308 to your computer and use it in GitHub Desktop.
Populate Cache
<PopulateCache name="PopulateMyCache">
<CacheResource>mycache</CacheResource>
<Source>{flow variable}</Source>
<Scope>Global/Application/Proxy/Target/Exclusive</Scope>
<CacheKey>
<Prefix>cache-key-prefix</Prefix>
<KeyFragment ref="request.header.id1" />
<KeyFragment ref="request.header.id2" />
</CacheKey>
<ExpirySettings>
<TimeoutInSec>300</TimeoutInSec> OR <TimeOfDay>13:30:00</TimeOfDay> OR <ExpiryDate>21-12-2012</ExpiryDate> OR <TimeoutInSec ref="response.header.expiry"/>
</ExpirySettings>
</PopulateCache>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment