A collection-like container with discardable objects. More...
#import <CPCache.h>
Additional Inherited Members | |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
A collection-like container with discardable objects.
A CPCache object is a collection-like container, or cache, that stores key-value pairs, similar to the CPDictionary class. Developers often incorporate caches to temporarily store objects with transient data that are expensive to create.
Reusing these objects can provide performance benefits, because their values do not have to be recalculated. However, the objects are not critical to the application and can be discarded if memory is tight. If discarded, their values will have to be recomputed again when needed.
|
implementation |
|
implementation |
Synthesized accessor method.
Provided by category CPCache(CPSynthesizedAccessors).
|
implementation |
|
implementation |
Synthesized accessor method.
Provided by category CPCache(CPSynthesizedAccessors).
|
implementation |
|
implementation |
|
implementation |
|
implementation |
Sets the count limit of the cache. Remove objects if not enough place to keep all of them
aCountLimit | the new count limit |
Provided by category CPCache(CPSynthesizedAccessors).
|
implementation |
|
implementation |
Synthesized accessor method.
Provided by category CPCache(CPSynthesizedAccessors).
|
implementation |
|
implementation |
|
implementation |
Sets the total cost limit of the cache. Remove objects if not enough place to keep all of them
aTotalCostLimit | the new total cost limit |
Provided by category CPCache(CPSynthesizedAccessors).
|
implementation |
Synthesized accessor method.
Provided by category CPCache(CPSynthesizedAccessors).