摘要: 限流Demo 用zset去做限流 client = redis.StrictRedis() def is_action_allowed(user_id,action_key,period,max_count): key = 'hist:%s:%s'%(user_id,action_key) now_ 阅读全文
posted @ 2020-12-07 10:50 Jimmyhe 阅读(94) 评论(0) 推荐(0) 编辑