I have set a Cache Resource configuration that expires every 300 seconds.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PopulateCache async="false" continueOnError="false" enabled="true" name="CP-Set-KVM-Configuration">
<DisplayName>CP-Set-KVM-Configuration</DisplayName>
<Properties/>
<CacheKey>
<KeyFragment>kvmConfigJson_cachedKey</KeyFragment>
</CacheKey>
<CacheResource>Cache_UK_Env_Pre_Proxy_Flow_V1_Configuration</CacheResource>
<Scope>Global</Scope>
<Source>kvmConfigJson</Source>
</PopulateCache>

After 5 mins cache not expired

1 4 91
4 REPLIES 4

Shouldn't you be using Expiry settings ?

<ExpirySettings>
 
<!-- use exactly one of the following child elements -->
 
<TimeoutInSeconds ref="duration_variable">seconds_until_expiration</TimeoutInSeconds>
 
<ExpiryDate ref="date_variable">expiration_date</ExpiryDate>
 
<TimeOfDay ref="time_variable">expiration_time</TimeOfDay>
</ExpirySettings>

 

Hi Nikhil,
I am using cache resource, it have the expire of 5 mins.

Which version of Apigee are you using? And what do you mean by the cache is configured for 300 second expiry but it's not expired after 5 seconds?

Hi @dknezic ,
There is typo , It is 5 mins.