protected var _cacheNames:Array
cacheStats:CacheStats [read-only]
Implementation
public function get cacheStats():CacheStats
protected var _cacheValues:Dictionary
protected var _evaluator:CacheObjectEvaluator
protected var _lastEvaluationTotal:int
protected var _maxValue:int
protected var _missSource:DataSource
protected var _stats:CacheStats
protected var _timer:Timer
public function LeastRecentlyUsedCache(cacheMissSource:DataSource, maxValue:int = 1000, evaluator:CacheObjectEvaluator = null, evaluationTime:int = 1000)
Parameters
| cacheMissSource:DataSource — When the data is not found in the cache, it will be requested from
this DataSource.
|
| |
| maxValue:int (default = 1000) — This maximum value of the objects in the cache. If this value is exceeded,
the oldest values in the cache will be removed.
|
| |
| evaluator:CacheObjectEvaluator (default = null) — If no evaluator is provided, an ObjectCountEvaluator will be used, causing
this cache to store maxValue objects before it starts to purge old entries
|
| |
| evaluationTime:int (default = 1000) — The minimum amount of time that must pass between cache evaluations in
milliseconds.
|
protected function evaluateCache(... ignored):voidParameters
public function getObject(name:String):ObjectParameters
Returns