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?
, NSInMemoryStore. . - , , ; , NSPersistentStoreCoordinator . . , , . (1) ( ) (2) , Core Data - .
NSInMemoryStore
NSPersistentStoreCoordinator
: . , .
, ? , . ( Apple) , , , Core Data. - Core Data ()/. - (libcache NSCache OS X 10.6 ). , , Core Data ( ). . ( ..), , () .