Objective C Data Caching on iOS

前端 未结 6 1655
北海茫月
北海茫月 2021-02-01 21:30

I am pulling data from an API and then building out my data objects with it. I want to cache this data for the future. I have been storing the string from the api in NSUserDef

6条回答
  •  不知归路
    2021-02-01 21:34

    Personally I'm quite fond of the EGOCache classes, I use them quite a lot in my projects:

    https://github.com/enormego/EGOCache

    The classes are easy to use, I used to have my own classes with a similar design, but these are just more well-rounded, so I decided to stick with them (don't wanna reinvent the wheel).

提交回复
热议问题