...
|
...
|
@@ -190,6 +190,9 @@ |
|
|
NSUInteger minimalPurge = capacity / 10;
|
|
|
|
|
|
NSNumber *capacityNumber = [cfg objectForKey:@"capacity"];
|
|
|
if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad && [cfg objectForKey:@"capacity-ipad"])
|
|
|
capacityNumber = [cfg objectForKey:@"capacity-ipad"];
|
|
|
|
|
|
if (capacityNumber != nil) {
|
|
|
NSInteger value = [capacityNumber intValue];
|
|
|
|
...
|
...
|
@@ -214,9 +217,9 @@ |
|
|
NSNumber *minimalPurgeNumber = [cfg objectForKey:@"minimalPurge"];
|
|
|
if (minimalPurgeNumber != nil && capacity != 0) {
|
|
|
NSUInteger value = [minimalPurgeNumber unsignedIntValue];
|
|
|
if (value > 0 && value<=capacity)
|
|
|
if (value > 0 && value<=capacity) {
|
|
|
minimalPurge = value;
|
|
|
else {
|
|
|
} else {
|
|
|
RMLog(@"minimalPurge must be at least one and at most the cache capacity");
|
|
|
}
|
|
|
}
|
...
|
...
|
|