Skip to content

Commit

Permalink
Set phpredis multi() mode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
fbnfgc authored Dec 12, 2019
1 parent 38449de commit 0c1f1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Monolog/Handler/RedisHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function write(array $record): void
protected function writeCapped(array $record): void
{
if ($this->redisClient instanceof \Redis) {
$this->redisClient->multi()
$this->redisClient->multi($mode = \Redis::MULTI)
->rpush($this->redisKey, $record["formatted"])
->ltrim($this->redisKey, -$this->capSize, -1)
->exec();
Expand Down

0 comments on commit 0c1f1d0

Please sign in to comment.