INamedCacheRelease Method |
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Release local resources associated with this instance of
INamedCache.
Namespace:
Tangosol.Net
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
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