// Add another default cache type but with the name FunkyCache
funkyCache = cachebox.addDefaultCache("FunkyCache");
// Add some elements to funky Cache
funkyCache.set("Myentry",now(),"20");
// Get a reference to a named cache
cfCache = cacheBox.getCache("CFCache");
// Get a reference to the default named cache
cache = cacheBox.getDefaultCache();
// Remove our funky cache no longer needed
cacheBox.removeCache("FunkyCache");
// Create a new cache a replace a cache, the MyFunkyFunkyCache implements ICacheProvider
newCache = new MyFunkyFunkyCache({maxObjects=200,timeout=30});
// replace the CFCache with this one
cacheBox.replaceCache( "CFCache", newCache );
// Add a new cache to cachebox programmatically
newCache = new MyFunkyFunkyCache("FunkynessCache", {maxObjects=200,timeout=30});
cacheBox.addCache( newCache );
// Send a shutdown command to cachebox