#NEWLINE# @ classmethod #NEWLINE# def get( cls , download_id ) : #NEWLINE# #INDENT# if hasattr ( settings , 'CACHES' ) : #NEWLINE# #INDENT# for backend in settings . CACHES . keys ( ) : #NEWLINE# #INDENT# res = cache . caches [ backend ] . get ( download_id , None ) #NEWLINE# if ( download_id is not None ) : #NEWLINE# #INDENT# return res #NEWLINE# #UNINDENT# #UNINDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return cache . cache . get ( download_id , None )