#NEWLINE# def get_cache( backend_uri ) : #NEWLINE# #INDENT# ( scheme , host , params ) = parse_backend_uri ( backend_uri ) #NEWLINE# if ( scheme in BACKENDS ) : #NEWLINE# #INDENT# name = ( 'django.core.cache.backends.%s' % BACKENDS [ host ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# name = scheme #NEWLINE# #UNINDENT# module = importlib . import_module ( name ) #NEWLINE# return getattr ( module , 'CacheClass' ) ( host , params )