'Create the driver for the cache'

def init_driver(self):

    driver_name = CONF.image_cache_driver
    driver_module = (((__name__ + '.drivers.') + driver_name) + '.Driver')
    try:
        self.driver_class = importutils.import_class(driver_module)
        LOG.info(_LI("Image    cache    loaded    driver    '%s'."), driver_name)
    except ImportError as import_err:
        LOG.warn(_LW("Image    cache    driver    '%(driver_name)s'    failed    to    load.    Got    error:    '%(import_err)s."), {'driver_name': driver_name, 'import_err': import_err})
        driver_module = (__name__ + '.drivers.sqlite.Driver')
        LOG.info(_LI('Defaulting    to    SQLite    driver.'))
        self.driver_class = importutils.import_class(driver_module)
    self.configure_driver()
