Property | Defined By | ||
---|---|---|---|
maxCount : int = 1000
允许缓存的最大数量
| PoolCache | ||
sign : String
对象在Pool中的标识
| PoolCache |
Method | Defined By | ||
---|---|---|---|
addPoolCacheManager(sign:String, maxCount:int = 100):void [static]
添加对象缓存管理
| PoolCache | ||
getCacheList():Array
获取缓存的对象列表
| PoolCache | ||
tryDispose(force:Boolean):void
尝试清理缓存
| PoolCache |
maxCount | property |
public var maxCount:int = 1000
允许缓存的最大数量
sign | property |
public var sign:String
对象在Pool中的标识
addPoolCacheManager | () | method |
public static function addPoolCacheManager(sign:String, maxCount:int = 100):void
添加对象缓存管理
Parameters
sign:String — 对象在Pool中的标识
| |
maxCount:int (default = 100 ) — 允许缓存的最大数量
|
getCacheList | () | method |
public function getCacheList():Array
获取缓存的对象列表
ReturnsArray —
|
tryDispose | () | method |
public function tryDispose(force:Boolean):void
尝试清理缓存
Parameters
force:Boolean — 是否强制清理
|