Properties
Abstract autoClear
autoClear: boolean
Abstract cacheDir
cacheDir: string
Abstract cacheEnabled
cacheEnabled: boolean
Abstract cacheInterval
cacheInterval: number
Abstract cachedFiles
cached
Files: Cache<{ bundle: string; lastTime: number; url: string }>
Abstract deleteInterval
deleteInterval: number
Methods
Abstract getCache
- getCache(originUrl: string): string
-
Parameters
Returns string
The cached path
Abstract getTemp
- getTemp(originUrl: string): string
-
Parameters
Returns string
The temp path
Abstract removeCache
- removeCache(originUrl: string): void
缓存管理器是一个模块,在非 WEB 平台上,用于管理所有从服务器上下载下来的缓存,这是一个单例,所有成员能通过
cc.assetManager.cacheManager
访问。