Conforms to NSObject
Declared in RKManagedObjectCaching.h

Overview

Objects implementing the RKManagedObjectCaching provide support for retrieving managed object matching a set of attributes using an opaque caching strategy. The objects retrieved are not required to be in any particular order, but must exactly match the attribute values requested.

Tasks

Retrieving Managed Objects

Instance Methods

didCreateObject:

- (void)didCreateObject:(NSManagedObject *)object
Discussion

Invoked to inform the receiver that an object was created and should be added to the cache.

Parameters

object

The object that was created in a managed object context.

Declared In

RKManagedObjectCaching.h

didDeleteObject:

- (void)didDeleteObject:(NSManagedObject *)object
Discussion

Invoked to inform the receiver that an object was deleted and should be removed to the cache.

Parameters

object

The object that was deleted from a managed object context.

Declared In

RKManagedObjectCaching.h

didFetchObject:

- (void)didFetchObject:(NSManagedObject *)object
Discussion

Invoked to inform the receiver that an object was fetched and should be added to the cache.

Parameters

object

The object that was fetched from a managed object context.

Declared In

RKManagedObjectCaching.h

managedObjectsWithEntity:attributeValues:inManagedObjectContext:

- (NSSet *)managedObjectsWithEntity:(NSEntityDescription *)entity attributeValues:(NSDictionary *)attributeValues inManagedObjectContext:(NSManagedObjectContext *)managedObjectContext
Discussion

Returns all managed objects for a given entity with attributes whose names and values match the given dictionary in a given context.

Parameters

entity

The entity to retrieve managed objects for.

attributeValues

A dictionary specifying the attribute criteria for retrieving managed objects.

managedObjectContext

The context to fetch the matching objects in.

Declared In

RKManagedObjectCaching.h