Obtain an INamedCache interface that provides a view of cached resources.

Namespace: Tangosol.Net
Assembly: Coherence (in Coherence.dll) Version: 12.1.2.0 (12.1.2.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

ExceptionCondition
System..::..InvalidOperationException If the service is not running.

See Also