Packagecom.whirled.contrib.cache
Interfacepublic interface CacheObjectEvaluator
ImplementorsByteArrayEvaluator, ObjectCountEvaluator

In order to determine whether a given cache is full, the cache must evaluate the value of each item, and compare that total to a configured max value. This interface provides a method for assigning values to the objects in a cache. This would typically either be a simple count (each object is worth 1), or a size of the object (each object's value is equal to the number of bytes it consumes).



Public Methods
 MethodDefined by
  
getValue(obj:Object):int
CacheObjectEvaluator
Method detail
getValue()method
public function getValue(obj:Object):intParameters
obj:Object

Returns
int