You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
703 B
31 lines
703 B
// |
|
// MOBFImageCachePolicy.h |
|
// MOBFoundation |
|
// |
|
// Created by 冯鸿杰 on 2017/4/12. |
|
// Copyright © 2017年 MOB. All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
#import "MOBFImageServiceTypeDef.h" |
|
|
|
@interface MOBFImageCachePolicy : NSObject |
|
|
|
/** |
|
缓存名称,用于对不同的图片缓存划分到不同的缓存路径中,如果名称相同则缓存位置相同。 |
|
*/ |
|
@property (nonatomic, copy) NSString *cacheName; |
|
|
|
/** |
|
缓存处理回调,当有图片需要进行缓存时会先调用该方法 |
|
*/ |
|
@property (nonatomic, strong) MOBFImageGetterCacheHandler cacheHandler; |
|
|
|
/** |
|
获取默认的缓存策略 |
|
|
|
@return 缓存策略 |
|
*/ |
|
+ (instancetype)defaultCachePolicy; |
|
|
|
@end
|
|
|