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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! 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