SDImageCacheConfig.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 <Foundation/Foundation.h>
  9. #import "SDWebImageCompat.h"
  10. @interface SDImageCacheConfig : NSObject
  11. /**
  12. * Decompressing images that are downloaded and cached can improve performance but can consume lot of memory.
  13. * Defaults to YES. Set this to NO if you are experiencing a crash due to excessive memory consumption.
  14. */
  15. @property (assign, nonatomic) BOOL shouldDecompressImages;
  16. /**
  17. * disable iCloud backup [defaults to YES]
  18. */
  19. @property (assign, nonatomic) BOOL shouldDisableiCloud;
  20. /**
  21. * use memory cache [defaults to YES]
  22. */
  23. @property (assign, nonatomic) BOOL shouldCacheImagesInMemory;
  24. /**
  25. * The maximum length of time to keep an image in the cache, in seconds
  26. */
  27. @property (assign, nonatomic) NSInteger maxCacheAge;
  28. /**
  29. * The maximum size of the cache, in bytes.
  30. */
  31. @property (assign, nonatomic) NSUInteger maxCacheSize;
  32. @end