NSCache

@property NSUInterger countLimit;//cache上限
@property NSUInterger totalCostLimit;//cache上限
- (id)objectForKey:(id)key;
- (void)setObject:(id)obj forKey:(id)key;
- (void)removeObjectForkey:(id)key
- (void)removeAllObjects;

你可能感兴趣的:(NSCache)