#NEWLINE# def redis_key( user , domain ) : #NEWLINE# #INDENT# 'Return the redis keys for this user' #NEWLINE# return [ ( 'ratelimit:%s:%s:%s:%s' % ( type ( user ) , domain . id , domain , keytype ) ) for keytype in [ 'list' , 'zset' , 'block' ] ]