def create(self, alias=None, cache=None, **kwargs):
if alias:<EOL><INDENT>config = self.get_alias_config(alias)<EOL><DEDENT>elif cache:<EOL><INDENT>warnings.warn(<EOL>"<STR_LIT>",<EOL>DeprecationWarning,<EOL>)<EOL>config = {"<STR_LIT>": cache}<EOL><DEDENT>else:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>cache = _create_cache(**{**config, **kwargs})<EOL>return cache<EOL>
Create a new cache. Either alias or cache params are required. You can use
kwargs to pass extra parameters to configure the cache.

.. deprecated:: 0.11.0
    Only creating a cache passing an alias is supported. If you want to
    create a cache passing explicit cache and kwargs use ``aiocache.Cache``.

:param alias: str alias to pull configuration from
:param cache: str or class cache class to use for creating the
    new cache (when no alias is used)
:return: New cache instance