FWCacheEngineProtocol
@protocol FWCacheEngineProtocol <NSObject>
缓存引擎内部协议
-
从引擎读取某个缓存,内部方法,必须实现
Declaration
Objective-C
- (nullable id)readCacheForKey:(nonnull NSString *)key;
-
从引擎写入某个缓存,内部方法,必须实现
Declaration
Objective-C
- (void)writeCache:(nonnull id)object forKey:(nonnull NSString *)key;
-
从引擎清空某个缓存,内部方法,必须实现
Declaration
Objective-C
- (void)clearCacheForKey:(nonnull NSString *)key;
-
从引擎清空所有缓存,内部方法,必须实现
Declaration
Objective-C
- (void)clearAllCaches;