Is Application.Storage updated during application execution?

It's been a couple of years since I explored this question, and I recall that the answer then was (surprisingly): "No it's only updated when the app closes".

It seems that might have changed, and that the answer now may be "Yes".

And I'm specifically referring to CIQ 2.4+ watchApps.

I would like to use Storage.setValue() in my app and later, in the the same application execution, use Storage.getValue() to retrieve the value,  i.e. both persist the value over multiple executions and be able to retrieve the value fn the current execution i.e. treat it like a global. (I assume there's some processing overhead, which I can live with.)

There is an obscure reference to data being "written to disk", which hints at read/write latency, and describes its use when retrieving in a later execution, with "The next time the application is launched, the stored location value can be retrieved..", but it makes no reference to retrieving in the current execution.

Is there a reliable explanation of the behaviour?

Top Replies

All Replies