Hi, im having problems using the scope Global and Shared Cache. I have two api proxies, that should do:
-
The first proxy should write into the cache (populate cache policy)
-
the second proxy should look into that cache and get the value that is cached (lookup cache policy)
The populate cache policy
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PopulateCache async="false" continueOnError="false" enabled="true" name="PopulateCacheSaveVar">
<DisplayName>PopulateCache.SaveVar</DisplayName>
<CacheKey>
<KeyFragment>apiAccessToken</KeyFragment>
<KeyFragment ref="responseVar"/>
</CacheKey>
<Scope>Global</Scope>
<ExpirySettings>
<TimeoutInSec>2600</TimeoutInSec>
</ExpirySettings>
<Source>sourceVar</Source>
</PopulateCache>
the look up cache policy
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<LookupCache async="false" continueOnError="false" enabled="true" name="LookupCacheFindCache">
<DisplayName>LookupCache.FindCache</DisplayName>
<CacheKey>
<KeyFragment>apiAccessToken</KeyFragment>
<KeyFragment ref="someVar"/>
</CacheKey>
<Scope>Global</Scope>
<AssignTo>CacheVar</AssignTo>
</LookupCache>
but it seems that when using CacheVar, its always null/empty string. Do someone have an idea or at least a working sample of two api’s sharing a Global Internal Cache?