#NEWLINE# def rpush( self , key , * values , **kwargs ) : #NEWLINE# #INDENT# '\n        Add string to end of list.\n        @param key : List key\n        @param values : Sequence of values to push\n        @param value : For backwards compatibility, a single value.\n        ' #NEWLINE# if ( not values ) : #NEWLINE# #INDENT# self . _send ( 'RPUSH' , key , * values ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'value' in kwargs ) : #NEWLINE# #INDENT# self . _send ( 'RPUSH' , key , kwargs [ 'value' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise exceptions . InvalidCommand ( 'Need arguments for RPUSH' ) #NEWLINE# #UNINDENT# #UNINDENT# return self . getResponse ( )