Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Caching Concept in ThingWorx

agupta-21
1-Visitor

Caching Concept in ThingWorx

Hi, Need information on Caching concept in ThingWorx. I want to cache the result of a service all throughout an users session. Please suggest.

4 REPLIES 4

There isn't any cache options, you should implement by yourself. But where do you want to apply cache before the service call ( aka reverse proxy ) or inside the service call?

Hi Carles,

Thanks for the response.

I have a service which takes long time to give the result(infotable) because of some searches happening in the service. I want result of the service to be cached for a particular user session.i.e. when a user logged in then the service executed once and then the cache is to be used further for that particular user. Again when he logs in then the service should executed fresh and later cache can be used. This way it should continue.

Build an Infotable property (not persistent) on user session with the calculated result ( lazy programing ), then you can do a timer which every hour looks if the user it's logged in or not, if it's not just clean the infotable property.

Ayushi,

Any update on this? Was Carles Coll's post helpful? If so, could you click on the "correct answer" or "mark as helpful" button and let us know?

Announcements


Top Tags