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.
求大神帮看下
5.4版本没有这个方法,须升级到5.5以上才行。https://stackoverflow.com/que...