Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
ICacheService..::.EnsureCache Method
ICacheService Interface See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Obtain an INamedCache interface that provides a view of cached resources.

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

# Syntax

C#
    INamedCache EnsureCache(
    	string name
    )

#### Parameters

name
  Type: System..::.String
  The name, within this ICacheService, that uniquely identifies a view; null is legal, and may imply a default name.

#### Return Value

An INamedCache interface which can be used to access the resources of the specified view.

# Remarks

The view is identified by name within this ICacheService. Typically, repeated calls to this method with the same view name will result in the same view reference being returned.

# Exceptions

Exception | Condition
--- | ---
System..::.InvalidOperationException | If the service is not running.

# See Also

ICacheService Interface
Tangosol.Net Namespace