Пример #1
0
 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)
Пример #2
0
 def set_attrs(self, uid, attrs, values):
     l = Tool.make_list(attrs, values)
     return self.ctx.RedisCluster.hash_mset(uid, 'user:%d' % uid, *l)