get_adapter

classmethod AsyncCacheWrapper.get_adapter(default: Union[Type[privex.helpers.cache.asyncx.base.AsyncCacheAdapter], str] = 'memory', *args, **kwargs)privex.helpers.cache.asyncx.base.AsyncCacheAdapter[source]

Attempt to get the singleton cache adapter from cache_instance - if the instance is None, then attempt to instantiate default()

If any *args or **kwargs are passed, they will be passed through to default(*args, **kwargs) so that any necessary configuration parameters can be passed to the class.