文档中 Redis 队列频率限制 Redis::throttle 方法不存在,如何解决?
Redis::throttle('key')->allow(10)->every(60)->then(function () {
// Job logic...
}, function () {
// Could not obtain lock...
return $this->release(10);
});
直接调用会报错exception 'Predis\ClientException' with message 'Command 'THROTTLE' is not a registered Redis command.
求神帮看下
推荐文章: