import CheckCache from "./CheckCache"; import TimeCache from "./TimeCache"; import FigureSencondPassCache from "./FigureSencondPassCache"; import FileSencondPassCache from "./FileSencondPassCache"; import HeadshotSencondPassCache from "./HeadshotSencondPassCache"; import ImageSencondPassCache from "./ImageSencondPassCache"; import VedioSencondPassCache from "./VedioSencondPassCache"; /** * 全局数据库管理 * @param _checkCache 缓存数据库 * @param _timeCache 时间数据库 * @param _figureSencondPassCache 插图数据库 * @param _fileSencondPassCache 文件数据库 * @param _headshotSencondPassCache 头像数据库 * @param _imageSencondPassCache 图片数据库 * @param _vedioSencondPassCache 视频数据库 * */ export default class CacheManager { /** * 初始化列表 * */ constructor() { this._checkCache = CheckCache.build(); this._timeCache = TimeCache.build(); this._figureSencondPassCache = FigureSencondPassCache.build(); this._fileSencondPassCache = FileSencondPassCache.build(); this._headshotSencondPassCache = HeadshotSencondPassCache.build(); this._imageSencondPassCache = ImageSencondPassCache.build(); this._vedioSencondPassCache = VedioSencondPassCache.build(); } /** * 参数变量列表 * */ private _checkCache : Promise; private _timeCache : Promise; private _figureSencondPassCache: Promise; private _fileSencondPassCache : Promise; private _headshotSencondPassCache : Promise; private _imageSencondPassCache : Promise; private _vedioSencondPassCache : Promise; /** * 获取续传数据库 * */ public getCheckCache(): Promise { return this._checkCache; } /** * 获取时间数据库 * */ public getTimeCache(): Promise{ return this._timeCache; } /** * 获取插图数据库 * */ public getFigureSencondPassCache(): Promise{ return this._figureSencondPassCache; } /** * 获取文件数据库 * */ public getFileSencondPassCache(): Promise{ return this._fileSencondPassCache; } /** * 获取头像数据库 * */ public getHeadshotSencondPassCache(): Promise{ return this._headshotSencondPassCache; } /** * 获取图片数据库 * */ public getImageSencondPassCache(): Promise{ return this._imageSencondPassCache; } /** * 获取视频数据库 * */ public getVedioSencondPassCache(): Promise{ return this._vedioSencondPassCache; } }