// // MTCacheManager.h // Meet // // Created by ko1o on 2018/8/29. // Copyright © 2018年 ko1o. All rights reserved. // #import @interface MTCacheManager : NSObject /// 初始化存储 根据用户id存储 + (void)setupCacheManager:(NSString* _Nullable (^)(void))setup; + (instancetype)defaultCacheManager; + (instancetype)userPersistanceManager; //持久的数据,不会被清理缓存 + (instancetype)userTemporaryManager;//暂时性数据,会清缓存 + (instancetype)persistanceManagerWithID:(NSString *)ID; - (BOOL)setObject:(id)obj forKey:(NSString *)key; - (nullable id)objectOfClass:(Class)cls forKey:(NSString *)key; - (BOOL)boolForKey:(NSString *)key; - (NSInteger)integerForKey:(NSString *)key; - (double)doubleForKey:(NSString *)key; - (void)setBool:(BOOL)val forKey:(NSString *)key; - (void)setInteger:(NSInteger)intval forKey:(NSString *)key; - (void)setDouble:(double)val forKey:(NSString *)key; - (BOOL)containsKey:(NSString *)key; - (void)removeValueForKey:(NSString *)key; - (void)clearAll; - (size_t)totalSize; @end