No Description

SDImageCacheConfig.m 749B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. #import "SDImageCacheConfig.h"
  9. static const NSInteger kDefaultCacheMaxCacheAge = 60 * 60 * 24 * 7; // 1 week
  10. @implementation SDImageCacheConfig
  11. - (instancetype)init {
  12. if (self = [super init]) {
  13. _shouldDecompressImages = YES;
  14. _shouldDisableiCloud = YES;
  15. _shouldCacheImagesInMemory = YES;
  16. _diskCacheReadingOptions = 0;
  17. _diskCacheWritingOptions = NSDataWritingAtomic;
  18. _maxCacheAge = kDefaultCacheMaxCacheAge;
  19. _maxCacheSize = 0;
  20. }
  21. return self;
  22. }
  23. @end