#NEWLINE# def replace( self , key , data , expiration = 0 , flags = 0 ) : #NEWLINE# #INDENT# return self . connection_for_key ( key ) . _do_command ( 'replace' , ( key , data , expiration , flags ) ) [ 0 ]