I'm working on a mobile app were some of the data requests will be cached in localStorage on the device. Depending on the data, I'd like to assign a timeout value for it that would flush the existing value and make new network request. I'm assuming I'll need to set timestamps into localStorage, check them when the data is requested and if its expired, execute a read() on the object to refresh the data.
Would that be a plausible solution or are there features of the framework that I've overlooked for this type of thing?
Would that be a plausible solution or are there features of the framework that I've overlooked for this type of thing?