#NEWLINE# def save_term( self , version , term , url , title ) : #NEWLINE# #INDENT# r . sadd ( ( 'redirects:v2:%s:%s' % ( version , term ) ) , url ) #NEWLINE# r . setnx ( ( 'redirects:v2:%s:%s:%s' % ( version , term , url ) ) , 1 ) #NEWLINE# r . set ( ( 'redirects:v2:titles:%s' % ( url , ) ) , title )