Authored by Ryan Romanchuk

Use subclassed NSCache

@@ -97,7 +97,7 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) { @@ -97,7 +97,7 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) {
97 _maxCacheAge = kDefaultCacheMaxCacheAge; 97 _maxCacheAge = kDefaultCacheMaxCacheAge;
98 98
99 // Init the memory cache 99 // Init the memory cache
100 - _memCache = [[NSCache alloc] init]; 100 + _memCache = [[AutoPurgeCache alloc] init];
101 _memCache.name = fullNamespace; 101 _memCache.name = fullNamespace;
102 102
103 // Init the disk cache 103 // Init the disk cache