def set_game_attrs(self, uid, gid, attrs, values): l = Tool.make_list(attrs, values) return self.ctx.RedisCluster.hash_mset(uid, 'game:%d:%d' % (gid, uid), *l)
def set_attrs(self, uid, attrs, values): l = Tool.make_list(attrs, values) return self.ctx.RedisCluster.hash_mset(uid, 'user:%d' % uid, *l)