Skip to main content
1-Visitor
October 8, 2020
Question

How can we change the Cache Method programmatically?

  • October 8, 2020
  • 1 reply
  • 1076 views

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.

1 reply

5-Regular Member
October 8, 2020


Hello @cmelancon,

 

Have you tried the following JSON format:

 

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

cmelancon1-VisitorAuthor
1-Visitor
October 8, 2020

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