• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSInMemoryStoreType: Not really "persistent", is it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSInMemoryStoreType: Not really "persistent", is it?


  • Subject: Re: NSInMemoryStoreType: Not really "persistent", is it?
  • From: Dave Dribin <email@hidden>
  • Date: Wed, 22 Oct 2008 09:57:03 -0500

On Oct 21, 2008, at 6:53 PM, Bill Bumgarner wrote:
The in memory store is actually extremely useful for caches and as a backing store for applications that read/write to/from some kind of server -- typically an XML RPC of some type -- that wants to take full advantage of CD's object graph management infrastructure. The various change hooks on the MOC and coordinator make it possible to easily mirror the changes out to the wire protocol or update the local cache -- the in memory persistent store -- with changes pulled from the other side.

I've been using the in-memory persistent store for unit testing a lot lately. In setUp and tearDown, I create and destroy a full core data stack with an in-memory store. It's very fast, and you're guaranteed a clean slate for each unit test.


-Dave

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSInMemoryStoreType: Not really "persistent", is it? (From: Jerry Krinock <email@hidden>)
 >Re: NSInMemoryStoreType: Not really "persistent", is it? (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: [Q] Hiding zoom & minimize buttons
  • Next by Date: Re: CALayer graphics context
  • Previous by thread: Re: NSInMemoryStoreType: Not really "persistent", is it?
  • Next by thread: Re: NSInMemoryStoreType: Not really "persistent", is it?
  • Index(es):
    • Date
    • Thread