CMSUserCacheManager Class Reference

Inherits from NSObject
Declared in CMSUserCacheManager.h
CMSUserCacheManager.m

– fetchUserCenterCache:

获取缓存数据

- (void)fetchUserCenterCache:(FetchCacheCompleteHandler)completeHandler

Parameters

completeHandler

缓存的回调

Declared In

CMSUserCacheManager.h

– saveUserCenterData:

保存缓存数据

- (void)saveUserCenterData:(FetchCacheDataHandler)cacheDataHandler

Parameters

cacheDataHandler

获取缓存数据的回调

Declared In

CMSUserCacheManager.h

– fetchCacheWithKey:completeHandler:

获取缓存数据

- (void)fetchCacheWithKey:(const NSString *)key completeHandler:(FetchCacheCompleteHandler)completeHandler

Parameters

key

缓存的类型

completeHandler

缓存的回调

Declared In

CMSUserCacheManager.h

– saveDataWithKey:withInfo:cacheDataHandler:

保存缓存数据

- (void)saveDataWithKey:(const NSString *)key withInfo:(NSDictionary *)info cacheDataHandler:(FetchCacheDataHandler)cacheDataHandler

Parameters

key

缓存的类型

info

附加数据

cacheDataHandler

获取缓存数据的回调

Declared In

CMSUserCacheManager.h

– saveDataWithKey:withInfo:delay:cacheDataHandler:

保存缓存数据

- (void)saveDataWithKey:(const NSString *)key withInfo:(NSDictionary *)info delay:(NSTimeInterval)delay cacheDataHandler:(FetchCacheDataHandler)cacheDataHandler

Parameters

key

缓存的类型

info

附加数据

delay

延时

cacheDataHandler

获取缓存数据的回调

Declared In

CMSUserCacheManager.h

– saveDataWithKey:jsonModelList:

保存jsonModel数组

- (BOOL)saveDataWithKey:(const NSString *)key jsonModelList:(NSArray *)jsonModelList

Parameters

key

key

jsonModelList

数组

Return Value

操作是否成功

Declared In

CMSUserCacheManager.h

– fetchCacheWithKey:class:

获取jsonModel数组

- (NSMutableArray *)fetchCacheWithKey:(const NSString *)key class:(Class)aClass

Parameters

key

key

aClass

class

Return Value

jsonModel数组

Declared In

CMSUserCacheManager.h