def redis_key(user, domain):
 return [('ratelimit:%s:%s:%s:%s' % (type(user), user.id, domain, keytype)) for keytype in ['list', 'zset', 'block']]

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