iphone Programming Glossary: largedata
NSCache is not evicting data http://stackoverflow.com/questions/11520815/nscache-is-not-evicting-data wrong void viewDidLoad _testCache NSCache alloc init Allocate 600 MB of zeros and save to NSCache NSMutableData largeData NSMutableData alloc init largeData setLength 1024 1024 600 _testCache setObject largeData forKey @ original_Data IBAction.. NSCache alloc init Allocate 600 MB of zeros and save to NSCache NSMutableData largeData NSMutableData alloc init largeData setLength 1024 1024 600 _testCache setObject largeData forKey @ original_Data IBAction buttonWasTapped id sender Allocate.. to NSCache NSMutableData largeData NSMutableData alloc init largeData setLength 1024 1024 600 _testCache setObject largeData forKey @ original_Data IBAction buttonWasTapped id sender Allocate save to cache 300 MB each time the button is pressed..
|