if (is_string($backend)) { $backendObject = self::
_makeBackend($backend,
$backendOptions,
$customBackendNaming,
$autoload);
} else { if ((is_object($backend)) && (in_array('Zend_Cache_Backend_Interface',
class_implements($backend)))) { $backendObject =
$backend;
} else { self::
throwException('backend must be a backend name (string) or an object which implements Zend_Cache_Backend_Interface'
);
} } if (is_string($frontend)) { $frontendObject = self::
_makeFrontend($frontend,
$frontendOptions,
$customFrontendNaming,
$autoload);
} else { if (is_object($frontend)) { $frontendObject =
$frontend;
} else { self::
throwException('frontend must be a frontend name (string) or an object'
);
} } $frontendObject->
setBackend($backendObject);
return $frontendObject;
}