Property | Defined By | ||
---|---|---|---|
loopTimeLimit : int = 2 [static]
单次清理检测允许执行的时间,单位ms
| CacheManger |
Method | Defined By | ||
---|---|---|---|
CacheManger | |||
beginCheck(waitTime:int = 15000):void [static]
开始检测循环
| CacheManger | ||
forceDispose():void [static]
强制清理所有管理器
| CacheManger | ||
regCacheByFunction(disposeFunction:Function, getCacheListFunction:Function):void [static]
注册cache管理函数
| CacheManger | ||
stopCheck():void [static]
停止检测循环
| CacheManger | ||
unRegCacheByFunction(disposeFunction:Function, getCacheListFunction:Function):void [static]
移除cache管理函数
| CacheManger |
loopTimeLimit | property |
public static var loopTimeLimit:int = 2
单次清理检测允许执行的时间,单位ms
CacheManger | () | Constructor |
public function CacheManger()
beginCheck | () | method |
public static function beginCheck(waitTime:int = 15000):void
开始检测循环
Parameters
waitTime:int (default = 15000 ) — 检测间隔时间
|
forceDispose | () | method |
public static function forceDispose():void
强制清理所有管理器
regCacheByFunction | () | method |
public static function regCacheByFunction(disposeFunction:Function, getCacheListFunction:Function):void
注册cache管理函数
Parameters
disposeFunction:Function — 释放函数 fun(force:Boolean)
| |
getCacheListFunction:Function — 获取cache列表函数fun():Array
|
stopCheck | () | method |
public static function stopCheck():void
停止检测循环
unRegCacheByFunction | () | method |
public static function unRegCacheByFunction(disposeFunction:Function, getCacheListFunction:Function):void
移除cache管理函数
Parameters
disposeFunction:Function — 释放函数 fun(force:Boolean)
| |
getCacheListFunction:Function — 获取cache列表函数fun():Array
|