|Configuring the Native Client Cache / Caches|
Use the Cache::close function to release system resources when you finish using the cache.
After the cache is closed, any further method calls on the cache or any region object results in a CacheClosedException.
If the cache is in a durable client, you need to use the keepalive version of the close method. See Disconnecting From the Server.