Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
12c (12.2.1.4.0)
E90869-02
Release local resources associated with this instance of
INamedCache.
Namespace: Tangosol.Net
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)
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()