jverkoey/nimbus — pull request #180 by chris124 (2012-03-22 16:52:21+00:00)
Title: use NSURLCache to give back cached responses if available. fix warning. ...

...use better implementation of singleton for image memory cache

Note: To use disk caching, do the following in your app delegate (depends on SDURLCache)

// 5MB disk cache
SDURLCache *urlCache = [[SDURLCache alloc] initWithMemoryCapacity:0
diskCapacity:1024*1024*5
diskPath:[SDURLCache defaultCachePath]];

[NSURLCache setSharedURLCache:urlCache];

//null out nimbus' in-memory cache so that we can use url disk caching
[Nimbus imageMemoryCache];
[Nimbus setImageMemoryCache:nil];