'Add a component to the cache.'

def __add_to_cache(self, component, cache_key):

    if ((cache_key is not None) and self.use_cache):
        self.component_cache[cache_key] = component
        logger.info(u"Added    '{}'    to    component    cache.    Key    '{}'.".format(component.name, cache_key))
