@Dino-at-Google @Anil Sagar @ Google
My requirement is to set cache resource and cache entry for infinite time . I have set it to -1 in populate cache the expiry time (TimeoutInSec) but it is getting clear almost in every 5 min automatically . I have no clue why it is happening . below is the xml .
Populate cache :-
<?xml version="1.0" encoding="UTF-8"?> <PopulateCache enabled="true" continueOnError="false" async="false" name="SaveJWEInCache"> <CacheResource>cache_details</CacheResource> <Source>cacheInput</Source> <Scope>Global</Scope> <CacheKey> <KeyFragment ref="developer.app.id" /> <KeyFragment ref="botInstance" /> </CacheKey> <ExpirySettings> <TimeoutInSec ref="expiry_token" /> </ExpirySettings> </PopulateCache>
Lookup cache :-
<?xml version="1.0" encoding="UTF-8"?> <LookupCache enabled="true" continueOnError="false" async="false" name="RetrieveJWEFromCache"> <CacheResource>cache_details</CacheResource> <AssignTo>botDetailsJWE</AssignTo> <Scope>Global</Scope> <CacheKey> <KeyFragment ref="developer.app.id" /> <KeyFragment ref="botInstance" /> </CacheKey> </LookupCache>
cache_details -- this is cache resource that I have set it to -1 .
In expiry_token ref i have set -1 as value in TimeoutInSec that i am picking from KVM .
I also tried 0 instead of -1 but no luck .
I have also tried to set date without using TimeoutInSec but still not working .
ExpiryDate = 12-01-2999.
Could anyone please help me why it is happening or am I doing something wrong here . ?
Thanks in advance .