I'm currently working on a iOS application that consumes data from a RESTful remote web service. Are there any common design principles for implementing a - local or remote - caching strategy in this context?
If you do not want to use database to save your response Or .plist
I can suggest you a better idea to use NSCachedURLResponse
and NSCache
.
You can use these classes to store your web service response. I don't know if you have already tried bean classes and reuse those objects to show data.
Hope this will work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.