Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhpRedis: Redis::eval() expects at most 3 parameters, 7 given #25456

Closed
stayallive opened this issue Sep 5, 2018 · 0 comments
Closed

PhpRedis: Redis::eval() expects at most 3 parameters, 7 given #25456

stayallive opened this issue Sep 5, 2018 · 0 comments

Comments

@stayallive
Copy link
Contributor

stayallive commented Sep 5, 2018

  • Laravel Version: 5.7.1
  • PHP Version: 7.2.8
  • Database Driver & Version: Redis 4.0.11

Description:

When trying to use a Redis throttle with the PhpRedis extension the following exception is thrown PhpRedis: Redis::eval() expects at most 3 parameters, 7 given.

Steps To Reproduce:

Use the phpredis redis database client with the following piece of code.

Redis::connection()->throttle('somethrottlekey')->allow(1)->every(10)->then(function () {
    $this->goAhead();
}, function () {
    $this->nope();
});

Stacktrace:

ErrorException: Redis::eval() expects at most 3 parameters, 7 given
#37 vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(114): handleError
#34 vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(114): command
#33 vendor/laravel/framework/src/Illuminate/Redis/Limiters/DurationLimiter.php(103): acquire
#32 vendor/laravel/framework/src/Illuminate/Redis/Limiters/DurationLimiter.php(80): block
#31 vendor/laravel/framework/src/Illuminate/Redis/Limiters/DurationLimiterBuilder.php(113): then
#30 app/Jobs/SomeJob.php(27): handle
<!-- SNIP -->

(stack trace is cut from where the throttle method is called for clearity)


Please let me know if other information is needed or wanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants