Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
LocalCache..::.Entry..::.CalculateUnits Method
LocalCache..::.Entry Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Calculate a cache cost for the specified object.

Namespace: Tangosol.Net.Cache
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)

# Syntax

C#
    public virtual int CalculateUnits(
    	Object value
    )

#### Parameters

value
  Type: System..::.Object
  The cache value to evaluate for unit cost.

#### Return Value

An integer value 0 or greater, with a larger value signifying a higher cost.

# Remarks

The default implementation uses the unit calculator type of the containing cache.

# See Also

LocalCache..::.Entry Class
Tangosol.Net.Cache Namespace