Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.1.0)
E69639-01
Release local resources associated with this instance of INamedCache.

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

Syntax

C#
void Release()

Remarks

Releasing a cache makes it no longer usable, but does not affect the cache itself. In other words, all other references to the cache will still be valid, and the cache data is not affected by releasing the reference. Any attempt to use this reference afterword will result in an exception.

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

  • new Cache() - cache.Release()
  • CacheFactory.GetCache() - CacheFactory.ReleaseCache()
  • ConfigurableCacheFactory.EnsureCache() - ConfigurableCacheFactory.ReleaseCache()
Except for the case where the application code expicitly allocated the cache, this method should not be called by application code.

See Also