cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

How can we change the Cache Method programmatically?

cmelancon
7-Bedrock

How can we change the Cache Method programmatically?

I have a RemoteThing and I want to change the Cache Method to "Fetch from remote every read". How can I do that? I tried with AddPropertyDefinition and I assume that it is in the remoteBindingAspects that I have to put that, but I don't know what to put in the JSON. Is it

remoteBindings: {

  "cacheMethod": "Fetch from remote every read"

}

 

Any help is welcomed.

2 REPLIES 2


Hello @cmelancon,

 

Have you tried the following JSON format:

 

{
   "remoteBindings":{
      "cacheMethod":"Fetch from remote every read"
   }
}

Yes I tried and the cache method stays to "Cached for specific time".

Top Tags