In-memory master data

I want to use Core Data as a cache for a larger set of data on a database server. Not all data will be in memory.

When we thought about this, 2 more questions came to mind:

  • Can an error (for example, for 1-n relations) be used with persistent storage in memory, and if so, how do you cheat the error?

  • The context of the main data-driven objects has a continuity interval. Does this also apply to storage in memory?

Or should I use NSAtomicStore for this purpose?

+5
source share
1 answer

, NSInMemoryStore. . - , , ; , NSPersistentStoreCoordinator . . , , . (1) ( ) (2) , Core Data - .

: . , .

, ? , . ( Apple) , , , Core Data. - Core Data ()/. - (libcache NSCache OS X 10.6 ). , , Core Data ( ). . ( ..), , () .

+12

All Articles