public function registerCacheDriver(CacheStorage $cache)
{
// set cache
$this->cache = $cache;
// unregister the old autoloader
spl_autoload_unregister([self::$instance, 'getClass']);
// prepend the new cache autoloader
spl_autoload_register([self::$instance, 'getClassFromCache'], true, true);
}