BigMemory Max 4.3.4 | Product Documentation | BigMemory Max Developer Guide | Basic Caching | Shut down the CacheManager
 
Shut down the CacheManager
You should shut down a CacheManager after use. It does have a shut-down hook, but it is a best practice to shut it down in your code.
The following shuts down the singleton CacheManager:
CacheManager.getInstance().shutdown();
The following shuts down a CacheManager instance, assuming you have a reference to the CacheManager called manager:
manager.shutdown();
For additional examples, see CacheManagerTest.java at https://fisheye.terracotta.org/browse/Ehcache/branches/ehcache-2.10.1/ehcache-core/src/test/java/net/sf/ehcache/.

Copyright © 2010 - 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.