Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
INamedCache..::.Destroy Method
INamedCache Interface See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Release and destroy this instance of INamedCache.

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

# Syntax

C#
    void Destroy()

# Remarks

Warning: This method is used to completely destroy the specified cache across the cluster. All references in the entire cluster to this cache will be invalidated, the cached data will be cleared, and all resources will be released.

Caches should be destroyed by the same mechansim in which they were obtained. For example:

- new Cache() - cache.Destroy()
- CacheFactory.GetCache() - CacheFactory.DestroyCache()
- ConfigurableCacheFactory.EnsureCache() - ConfigurableCacheFactory.DestroyCache()

Except for the case where the application code expicitly allocated the cache, this method should not be called by application code.

# See Also

INamedCache Interface
Tangosol.Net Namespace