#import <MyObjectCache.h>


Public Member Functions | |
| (id) | - initWithSize:policy: |
| Initializer. | |
| (void) | - setObject:forKey: |
| Put an object in the cache. | |
| (NSObject *) | - getObjectForKey: |
| Retrieve an object from the cache. | |
| (void) | - setSize: |
| Adapt the cache to a new size. | |
| - (id) initWithSize: | (unsigned int) | size | ||
| policy: | (unsigned short) | policy | ||
Initializer.
| size | The maximum number of objects in the cache | |
| policy | The refresh policy of the cache |
| - (void) setObject: | (NSObject*) | obj | ||
| forKey: | (id) | key | ||
Put an object in the cache.
| obj | The object to add to the cache | |
| key | The key to identify this object |
| - (NSObject *) getObjectForKey: | (id) | key |
Retrieve an object from the cache.
| key | the key for this object |
| - (void) setSize: | (unsigned int) | size |
Adapt the cache to a new size.
| size | The new size |
1.5.4