简体   繁体   中英

Core Data Vs Value Objects

I have a data which will remain fresh for 30 minutes Which way of storing the data is advantageous: 1. Storing it in CORE data and clear it after 30 minutes. 2. Storing it in Value Objects, save it in a Array and clean it after 30 mins or when app goes off.

CoreData can hold your data in memory or on disk, the real question is will it be easier to get your data in to core data, or in to a value object.

CoreData will also make managing the memory required to store your data easier, but that really only matters if the volume of data is large.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM