• 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: Making NSCache evict only unreferenced objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making NSCache evict only unreferenced objects


  • Subject: Re: Making NSCache evict only unreferenced objects
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 17 Jun 2011 11:28:28 -0700

On Jun 17, 2011, at 9:40 AM, Jens Alfke wrote:

> Basically this is a cache of database records, where the dictionary key is the primary key and the value is a parsed version of the row data. I want to cache these to minimize database calls. I also want to ensure that the value objects are unique, i.e. there is never more than one value object for a particular primary key.

Rather than reinventing all of this yourself, you should just use Core Data.

It provides both the uniquing and the database call minimization you're looking for, and a lot else besides.

  -- Chris

_______________________________________________

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

  • Follow-Ups:
    • Re: Making NSCache evict only unreferenced objects
      • From: Jens Alfke <email@hidden>
References: 
 >Making NSCache evict only unreferenced objects (From: Jens Alfke <email@hidden>)

  • Prev by Date: Making NSCache evict only unreferenced objects
  • Next by Date: Re: Making NSCache evict only unreferenced objects
  • Previous by thread: Making NSCache evict only unreferenced objects
  • Next by thread: Re: Making NSCache evict only unreferenced objects
  • Index(es):
    • Date
    • Thread