Redis+Lua实现分布式限流器:原理、代码实战与应用场景 一、运行测试 #循环遍历测试接口:限制为60秒 100次请求,限流主键为:rate_limit:zhangsan@example.com for i in { 1..120};