// // RQCacheManager.h // JSJP // // Created by 张嵘 on 2021/8/17. // #import #define RQ_CACHE_MANAGER [RQCacheManager sharedInstance] NS_ASSUME_NONNULL_BEGIN @interface RQCacheManager : NSObject @singleton(RQCacheManager); - (void)removeAllCache; - (void)removeCacheWithPath:(NSString *)path parameters:(NSDictionary * __nullable)parameters; - (BOOL)isNeedCacheWithPath:(NSString *)path; - (void)saveCacheWithPath:(NSString *)path parameters:(NSDictionary * __nullable)parameters response:(NSURLResponse *)response responseObject:(NSDictionary *)responseObject; - (NSDictionary *)getCacheWithPath:(NSString *)path parameters:(NSDictionary * __nullable)parameters; @end NS_ASSUME_NONNULL_END