The CacheFactory loads the cache configuration and instantiates and registers the correct type of cache adaptor object based on the config. This is used in the bootstrap.
if (AppConfig::get('CacheEnabled')) {
AppLoader::includeClass('php/cache/', 'CacheFactory');
$objCacheFactory = new CacheFactory('cache');
AppRegistry::register('Cache', $objCacheFactory->init());
}