def create(config):
if exists(config):<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>return config.cache_path<EOL><DEDENT>logger.debug(f"<STR_LIT>")<EOL>pathlib.Path(config.cache_path).mkdir(parents=True, exist_ok=True)<EOL>create_index(config)<EOL>return config.cache_path<EOL>
Create a wily cache.

:param config: The configuration
:type  config: :class:`wily.config.WilyConfig`

:return: The path to the cache
:rtype: ``str``