美文网首页
SDImageCacheConfig

SDImageCacheConfig

作者: 认不出我来 | 来源:发表于2018-06-07 11:31 被阅读0次

/**
对下载和缓存的图像进行解压缩可以提高性能,但会消耗大量内存。
默认为“是”。如果由于内存消耗过多而导致崩溃,则将其设置为“否”。
*/
@property (assign, nonatomic) BOOL shouldDecompressImages;

/**

  • 默认禁掉备份功能
    */
    @property (assign, nonatomic) BOOL shouldDisableiCloud;

/**

  • 是否开启内存缓存,默认开启
    */
    @property (assign, nonatomic) BOOL shouldCacheImagesInMemory;

/**

  • 最大缓存的时间长度,默认是7days
    */
    @property (assign, nonatomic) NSInteger maxCacheAge;

/**

  • 最大缓存的开销,默认是0bytes,在SD使用的时候都判断maxCacheSize>0的操作,所以理论上相当于不设置最大值。
    */
    @property (assign, nonatomic) NSUInteger maxCacheSize;

相关文章

网友评论

      本文标题:SDImageCacheConfig

      本文链接:https://www.haomeiwen.com/subject/mfzwsftx.html