#NEWLINE# def add( self , key , value , timeout = None ) : #NEWLINE# #INDENT# if ( timeout is None ) : #NEWLINE# #INDENT# timeout = self . default_timeout #NEWLINE# #UNINDENT# dump = self . dump_object ( timeout ) #NEWLINE# added = self . _client . setnx ( ( self . key_prefix + key ) , dump ) #NEWLINE# if added : #NEWLINE# #INDENT# self . _client . expire ( ( self . key_prefix + key ) , timeout )