RestKit/RestKit — pull request #532 by jeffarena (2012-01-26 22:00:53+00:00)
Title: Replace RKManagedObjectCache with blocks and replace thread-local caching with strategy pattern

There are two high-level goals with this change:

1) Replace the RKManagedObjectCache, currently held by the RKManagedObjectStore, with a more flexible, mapping-based blocks approach

2) Refactor the thread-local managed object caching used during mapping operations on Core Data entities with a new strategy pattern, based on the new RKManagedObjectMappingCache protocol. Two concrete implementations currently exist. One mimics the previous thread-local storage mechanism, but decouples the cache from individual thread dictionaries. The second takes a more basic fetchRequest per lookup approach. Users who have more varied or specific performance considerations are able to implement RKManagedObjectMappingCache to apply a caching strategy for managed objects that best fits there needs.