public static class OldCache.InternalUnitCalculator extends Object implements OldCache.UnitCalculator
| Modifier and Type | Field and Description |
|---|---|
static OldCache.InternalUnitCalculator |
INSTANCE
Singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
calculateUnits(Object oKey, Object oValue)
Calculate a cache cost for the specified cache entry key and value.
|
String |
getName()
Obtain the name of the unit calculator.
|
public static final OldCache.InternalUnitCalculator INSTANCE
public int calculateUnits(Object oKey, Object oValue)
calculateUnits in interface ConfigurableCacheMap.UnitCalculatoroKey - the cache key to evaluate for unit costoValue - the cache value to evaluate for unit costpublic String getName()
getName in interface ConfigurableCacheMap.UnitCalculator