Use subclassed NSCache
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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 |
-
Please register or login to post a comment