#NEWLINE# def clear( self ) : #NEWLINE# #INDENT# if keys . key_prefix : #NEWLINE# #INDENT# keys = self . _client . keys ( ( self . key_prefix + '*' ) ) #NEWLINE# if keys : #NEWLINE# #INDENT# self . _client . delete ( * keys ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . _client . flushdb ( )