| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //
- // JXCacheManager.h
- // AICity
- //
- // Created by TogetherWatch on 2025-10-13.
- // Feature: 003-ios-api-https - 剧星短剧平台API接入
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- /**
- * 剧星平台缓存管理器
- */
- @interface JXCacheManager : NSObject
- + (instancetype)sharedManager;
- /**
- * 保存分类列表缓存
- */
- - (void)saveCategoryList:(NSArray *)categories;
- /**
- * 获取分类列表缓存
- */
- - (nullable NSArray *)getCategoryList;
- /**
- * 保存短剧列表缓存
- */
- - (void)saveDramaList:(NSArray *)dramas
- forCategory:(NSString *)categoryId
- page:(NSInteger)page;
- /**
- * 获取短剧列表缓存
- */
- - (nullable NSArray *)getDramaListForCategory:(NSString *)categoryId
- page:(NSInteger)page;
- /**
- * 保存短剧详情缓存
- */
- - (void)saveDramaDetail:(NSDictionary *)detail
- forDramaId:(NSString *)dramaId;
- /**
- * 获取短剧详情缓存
- */
- - (nullable NSDictionary *)getDramaDetailForDramaId:(NSString *)dramaId;
- /**
- * 清除所有缓存
- */
- - (void)clearAllCache;
- /**
- * 清除过期缓存
- */
- - (void)clearExpiredCache;
- @end
- NS_ASSUME_NONNULL_END
|