I am working on an application that needs to store some informations locally. I first thought NSUserDefaults is a good way, but i m not very sure. The information i am storing needs to be refreshed once in a while. The server could send me updated and when i receive them i need to refresh the information for the data I ve stored. I could have a lot of different informations and some of them could be refreshed several times in a couple of minutes.
How to do this?
If using a DB - StorageManager when receiving some updated I would have to search in the db for the data i need to update. If I have 40 updated I would have to do 40 select types. It s not too efficient. I currently use a NSUserDefaults with different keys for each information stored. When receiving updates I just search for the particularly key I need and update it.
Once in a while i would also have to check for each data stored locally if it needs to be updated (based on a timer) and if it does..I ask for new updated.
Do you have any other efficient ideas?