#NEWLINE# def clear( self , key , participant_identifier ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# cache_key = ( COUNTER_CACHE_KEY % cache_key ) #NEWLINE# pipe = self . _redis . pipeline ( ) #NEWLINE# ( freq , _ ) = pipe . hget ( cache_key , participant_identifier ) . hdel ( cache_key , participant_identifier ) . execute ( ) #NEWLINE# freq_cache_key = ( COUNTER_FREQ_CACHE_KEY % key ) #NEWLINE# self . _redis . hincrby ( freq_cache_key , freq , ( - 1 ) ) #NEWLINE# #UNINDENT# except ( ConnectionError , ResponseError ) : #NEWLINE# #INDENT# pass